.TH "NPM" "" "October 2014" "" "".SH "NAME"\fBnpm\fR.SH SYNOPSIS.P.RS 2.nfnpm\.commands\.init(args, callback).fi.RE.SH DESCRIPTION.PThis will ask you a bunch of questions, and then write a package\.json for you\..PIt attempts to make reasonable guesses about what you want things to be set to,and then writes a package\.json file with the options you've selected\..PIf you already have a package\.json file, it'll read that first, and default tothe options in there\..PIt is strictly additive, so it does not delete options from your package\.jsonwithout a really good reason to do so\..PSince this function expects to be run on the command\-line, it doesn't work verywell as a programmatically\. The best option is to roll your own, and sinceJavaScript makes it stupid simple to output formatted JSON, that is thepreferred method\. If you're sure you want to handle command\-line prompting,then go ahead and use this programmatically\..SH SEE ALSO.Pnpm help 5 package\.json