Skip to content

Instantly share code, notes, and snippets.

@axemclion
Created August 27, 2013 18:18
Show Gist options
  • Select an option

  • Save axemclion/6357083 to your computer and use it in GitHub Desktop.

Select an option

Save axemclion/6357083 to your computer and use it in GitHub Desktop.
Calling NPM test from inside a node module
npm = require('npm')
npm.load({
argv: {
remain: [],
cooked: ['test'],
original: ['test']
}
}, function() {
npm.commands.test([], function() {});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment