Token copy paste from swagger api
npm install -g token-copypaste
create files in folder user named .gettoken_copypaste:
- create credential.js: parameter options --user
{ <type user>:{ "email": "", "password: "" } }
- config.js: parameter options --env [dev, int, pre, pro]
{ <enviroment>:{ host: "localhost", port: 3000 } }
Is used for construct url and json request method post:
<host>:<port>/path{body: credential}
token --env dev --user admin
- axios
- clipboardy
- dotenv
- yargs