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

7 lines
183 B
JavaScript

var init = require('../init-package-json.js')
var dir = process.cwd()
init(dir, 'file that does not exist', function (err, data) {
if (!err) console.log('written successfully')
})