<p align="center" valign="middle"> <a href=""><img height="20" alt="Version" src=""></a> <a href=""><img height="2
Last updated 2 years ago by gtramontina .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install npmrc-to-env 
SYNC missed versions from official npm registry.


Version Build Status MIT License Downloads Semantic Release


If all you have at hand is an .npmrc file, but you need exported environment variables to properly setup CI environments, for example, then this program comes in handy.


$ npmrc-to-env --help

    npmrc-to-env [options]

    -s --scope <scope>    Scope from which information will be extracted.

    $ cat ~/.npmrc | npmrc-to-env
    $ cat ~/.npmrc | npmrc-to-env -s @myscope

You can, then, export the generated environment variables with:

$ export $(cat ~/.npmrc | npmrc-to-env | xargs)

Although all examples use ~/.npmrc as the source, it can be whatever .npmrc file you have.


This repository holds a standard NodeJS project, so you can run all node-related commands, such as npm install, npm test, and whatnot. We do, however, use yarn do handle the dependencies. This shouldn't be a big deal, though.

Now, if you don't want to have to deal with having the right node version, yarn or whatever else installed locally, and you already have docker, then all you need to do is prefix any command you want to run with make run -- and we'll take care of everything. Like so:

$ make run -- yarn test
$ make run -- yarn test --watch
$ make run -- yarn …
$ make run -- npx …
$ make run -- sh


This software is licensed under the MIT license

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (10)
Dependents (0)

Copyright 2014 - 2017 © |