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