Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including deport with all npm packages installed. Try it out:

var deport = require("deport")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

deport v1.0.1

A NodeJS Global Dependency Manager

Deport

Deport is a small module to help installing global module dependencies while installing modules. Not sure how useful it is, but I create this since my project require global modules installed, and I won't to ask the users to install the required global modules manually.

Usage

You only need to add preinstall script and cliDependencies to your package.json file.

The preinstall script should contains npm install -g deport && deport to ensure the deport installed, and then run the deport. The cliDependencies should be an array.

Example

{
  "name": "node-module",
  "version": "1.0.0",
  "scripts": {
    "preinstall": "npm install -g deport && deport"
  },
  "cliDependencies": [ "pm2", "forever", "sails" ]
}

When you run npm install on your project, the npm will install and run the deport before installing the dependencies and devDependencies.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free