Socket
Socket
Sign inDemoInstall

get-npm-token

Package Overview
Dependencies
151
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-npm-token

exchange npm credentials for an api token


Version published
Maintainers
1
Weekly downloads
196
increased by20.99%

Weekly downloads

Readme

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

FAQs

Last updated on 15 Jan 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc