Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boennemann/get-npm-token

username, email and password in – token out.
https://github.com/boennemann/get-npm-token

Last synced: about 16 hours ago
JSON representation

username, email and password in – token out.

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
```