token-copypaste
Token copy paste from swagger api
Install
npm install -g
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}
Use
token --env dev --user admin
dependencies
- axios
- clipboardy
- dotenv
- yargs