0.0.5 • Published 5 years ago

@vanioinformatika/npmrc-auth-token-retriever v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

Search auth token inside .npmrc file base on registry URL.

Installation

npm install @vanioinformatika/npmrc-auth-token-retriever --save

Usage

From CLI:

npx retrieve-auth-token --registry private-registry.organization.com

From node:

import {retrieveAuthToken} from '@vanioinformatika/npmrc-auth-token-retriever'

const token = retrieveAuthToken('private-registry.organization.com')

if (token) {
    // Do something with token
} else {
    // Token not found in .npmrc file
}

If registry is not set, then default npmjs registry will be used (registry.npmjs.org).

Note: Typescript declaration files are included in package.

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago