Socket
Book a DemoInstallSign in
Socket

envpm

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envpm

npm registry environment manager

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

envpm

Build Status npm install npm version js-standard-style License

easy directory-level configuration scoping for npm

example

installation

npm install -g envpm

usage

envpm proxies commands to npm, but (in the event of a .npmrc file in your current working directory or any directory up from that) uses the configuration information present in that file.

The only command provided by envpm is which, used as such:

envpm which

This will print the location to the .npmrc that envpm will source if run from your current working directory.

If you'd like to make npm dir aware all the time, put the following command in your .bashrc:

alias npm=envnpm

Important: Be sure to set a different cache directory in your overridden .npmrc so that your private cache doesn't interfere with your public cache (and vice versa). Here's an example (minimal) .npmrc:

registry=http://your.registry/
cache=/full/path/to/.local-cache

as a module

var envpm = require('envpm')

envpm(dir, args) // executes npm with args,
                 // looking for .npmrc file starting in dir

license

MIT

Keywords

npm

FAQs

Package last updated on 21 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts