@ambassify/set-npmrc

2.0.1 • Public • Published

@ambassify/set-npmrc

This script adds NPM registry authentication through the .npmrc file in the current directory. If no .npmrc file exists, it is created, otherwise the authentication is appended to the existing file.

Usage

npx @ambassify/set-npmrc [--registry registry] [--env token_var_key]

Options:

  • --registry: For which registry to set authentication, e.g. npm.ambassify.eu. If not set, it will use npm's NPM_CONFIG_REGISTRY environment variable or default to registry.npmjs.org if it isn't present.
  • --env: The environment variable that contains the token for authentication. If the variable isn't set, no authentication will be added. Defaults to NPM_TOKEN.

Readme

Keywords

Package Sidebar

Install

npm i @ambassify/set-npmrc

Weekly Downloads

250

Version

2.0.1

License

UNLICENSED

Unpacked Size

2.86 kB

Total Files

3

Last publish

Collaborators

  • ambassify