Welcome to mirror list, hosted at ThFree Co, Russian Federation.

example-default.js « example « init-package-json « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3aea518c5baaa020074b2f4b9aaa05cda82f1ad (plain)
1
2
3
4
5
6
7
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')
})