node/deps/npm/node_modules/init-package-json/example/example-default.js

8 lines
210 B
JavaScript
Raw Normal View History

2013-11-21 03:08:52 +08:00
var init = require('../init-package-json.js')
var path = require('path')
var dir = process.cwd()
init(dir, 'file that does not exist', function (err, data) {
if (!err) console.log('written successfully')
})