mirror of https://github.com/lukechilds/node.git
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.
14 lines
319 B
14 lines
319 B
11 years ago
|
var init = require('../init-package-json.js')
|
||
13 years ago
|
var path = require('path')
|
||
|
var dir = process.cwd()
|
||
|
var npm = require('npm')
|
||
11 years ago
|
|
||
13 years ago
|
npm.load(function (er, npm) {
|
||
|
if (er) throw er
|
||
11 years ago
|
init(dir, npm.config.get('init-module'), npm.config, function (er, data) {
|
||
13 years ago
|
if (er) throw er
|
||
|
console.log('written successfully')
|
||
|
})
|
||
|
})
|
||
|
|