]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/api/npm-init.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / api / npm-init.md
1 npm init(3) -- Interactively create a package.json file
2 =======================================================
3
4 ## SYNOPSIS
5
6     npm.commands.init(args, callback)
7
8 ## DESCRIPTION
9
10 This will ask you a bunch of questions, and then write a package.json for you.
11
12 It attempts to make reasonable guesses about what you want things to be set to,
13 and then writes a package.json file with the options you've selected.
14
15 If you already have a package.json file, it'll read that first, and default to
16 the options in there.
17
18 It is strictly additive, so it does not delete options from your package.json
19 without a really good reason to do so.
20
21 Since this function expects to be run on the command-line, it doesn't work very
22 well as a programmatically. The best option is to roll your own, and since
23 JavaScript makes it stupid simple to output formatted JSON, that is the
24 preferred method. If you're sure you want to handle command-line prompting,
25 then go ahead and use this programmatically.
26
27 ## SEE ALSO
28
29 package.json(5)