// SYSTEM PANEL //
[ROOT]
/
opt
/
alt
/
alt-nodejs6
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
init-package-json
/
example
[ PARENT ]
EDIT :: example-npm.js
var init = require('../init-package-json.js') var dir = process.cwd() var npm = require('npm') npm.load(function (er, npm) { if (er) throw er init(dir, npm.config.get('init-module'), npm.config, function (er, data) { if (er) throw er console.log('written successfully') }) })
SAVE
CANCEL