Run NPM commmand directly in JS !
Thanks for npm/cli: the package manager for JavaScript (github.com)
-
Run
npm install npm-js-interface
to install -
let npm = require('npm-js-interface');
-
npm("npm help"); npm("npm list"); npm("npm install hello-world"); //...