You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
319 B

var init = require('../init-package-json.js')
var path = require('path')
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')
})
})