Skip to content

Lightweight wrapper for accessing npm programmatically (alternative to adding `npm` as a dependency)

License

Notifications You must be signed in to change notification settings

Globegitter/enpeem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enpeem

Lightweight wrapper for accessing npm programmatically (alternative to adding npm as a dependency)

require('npm') seems like a good idea, but it adds tons of weight to your module, since it takes a long time to install. Why not use the npm your users already have?

NOTE: re: cache-min, see: https://github.com/isaacs/npm/issues/2568#issuecomment-30626394 re: loglevel, see: https://github.com/isaacs/npm/pull/4320

Usage

$ npm install enpeem --save
var npm = require('enpeem');

npm install

npm.install({
  dependencies: [
    '[email protected]',
    'sails-disk@git://github.com/balderdashy/sails-disk.git#associations',
    'lodash'
  ]
  loglevel: 'silent',
  'cache-min': 999999999
}, function (err) { /* ... */ });

npm update

npm.update({
  loglevel: 'silent'
}, function (err) { /* ... */ });

About

Lightweight wrapper for accessing npm programmatically (alternative to adding `npm` as a dependency)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%