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: 29a819906888a18457379b182640be8fbd78d2ce (plain)
1
2
3
4
5
6
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')
})