enpeem
Lightweight wrapper for accessing npm programmatically (alternative to adding `npm` as a dependency)
Last updated 10 years ago by mikermcneil .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install enpeem 
SYNC missed versions from official npm registry.

enpeem

Build Status npm version

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({
  dir: '/code/my-sweet-node-app',
  dependencies: [
    'sails@0.10.1',
    'sails-disk@git://github.com/balderdashy/sails-disk.git#associations',
    'lodash'
  ]
  loglevel: 'silent',
  'cache-min': 999999999
}, function (err) { /* ... */ });
The dir option

The dir option controls where the NPM package will be installed as a dependency. If dir is unspecified, it defaults to the current working directory. If dir is a relative path, it will be resolved relative to the current working directory.

npm update

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

Current Tags

  • 2.2.0                                ...           latest (10 years ago)

7 Versions

  • 2.2.0                                ...           10 years ago
  • 2.1.0                                ...           11 years ago
  • 2.0.1                                ...           11 years ago
  • 2.0.0                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
  • 0.1.1                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |