https://github.com/boennemann/get-npm-token
username, email and password in – token out.
https://github.com/boennemann/get-npm-token
Last synced: 6 months ago
JSON representation
username, email and password in – token out.
- Host: GitHub
- URL: https://github.com/boennemann/get-npm-token
- Owner: boennemann
- Created: 2016-01-15T14:06:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T00:26:57.000Z (over 8 years ago)
- Last Synced: 2024-12-16T13:34:15.884Z (7 months ago)
- Language: JavaScript
- Homepage: http://npm.im/get-npm-token
- Size: 13.7 KB
- Stars: 13
- Watchers: 4
- Forks: 3
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-npm-token
> username, email and password in – token out.
```js
var getToken = require('get-npm-token')getToken('https://registry.npmjs.org/', 'boennemann', '[email protected]', '***', console.log)
// the-token
``````bash
npm install -g get-npm-token
get-npm-token
> ? npm registry https://registry.npmjs.org/
> ? npm username? boennemann
> ? npm email [email protected]
> ? npm password ***
> the-token
```The CLI securely caches answers in the npm config/os keychain (if available) so a repeated call looks like this:
```bash
> ? npm registry (https://registry.npmjs.org/) # prefilled
> ? npm username? (boennemann) # prefilled
> ? npm email ([email protected]) # prefilled
> # no more password required, use -f if you changed it
> another-token
```