create-npmrc
v2.0.2
Published
Fetches the token from remote service and creates local npmrc
Downloads
4,092
Maintainers
Keywords
Readme
create-npmrc
This is a client module that communicates with the server and creates .npmrc
in your local project. Using generated .npmrc
file allows installation of scoped npm packages.
yarn add create-npmrc
or
npm install create-npmrc --save
Add this row to your project's package.json to automatically obtain .npmrc
"scripts": {
"preinstall": "URL={server end point} create-npmrc"
},
ENV variables:
URL # required variable
REGISTRY # default: registry.npmjs.org