Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enpeem

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enpeem

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

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
111
increased by48%
Maintainers
5
Weekly downloads
 
Created
Source

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) { /* ... */ });

Keywords

FAQs

Package last updated on 20 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc