token-copypaste

0.0.1 • Public • Published

token-copypaste

Token copy paste from swagger api

Install

npm install -g 

create files in folder user named .gettoken_copypaste:

  1. create credential.js: parameter options --user
    {
        <type user>:{
            "email": "",
            "password: ""
        }
    }
    
  2. 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

Readme

Keywords

Package Sidebar

Install

npm i token-copypaste

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

7.4 kB

Total Files

11

Last publish

Collaborators

  • negrero