]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/init-package-json/example/example-npm.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / init-package-json / example / example-npm.js
1 var init = require('../init-package-json.js')
2 var dir = process.cwd()
3 var npm = require('npm')
4
5 npm.load(function (er, npm) {
6   if (er) throw er
7   init(dir, npm.config.get('init-module'), npm.config, function (er, data) {
8     if (er) throw er
9     console.log('written successfully')
10   })
11 })