🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

get-npm-token

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-npm-token

exchange npm credentials for an api token

1.0.1
latest
Source
npm
Version published
Weekly downloads
55
-11.29%
Maintainers
1
Weekly downloads
 
Created
Source

get-npm-token

username, email and password in – token out.

var getToken = require('get-npm-token')

getToken('https://registry.npmjs.org/', 'boennemann', 'stephan@boennemann.me', '***', console.log)
// the-token
npm install -g get-npm-token
get-npm-token
> ? npm registry https://registry.npmjs.org/
> ? npm username? boennemann
> ? npm email stephan@boennemann.me
> ? npm password ***
> the-token

The CLI securely caches answers in the npm config/os keychain (if available) so a repeated call looks like this:

> ? npm registry (https://registry.npmjs.org/) # prefilled
> ? npm username? (boennemann) # prefilled
> ? npm email (stephan@boennemann.me) # prefilled
> # no more password required, use -f if you changed it
> another-token

Keywords

auth

FAQs

Package last updated on 15 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts