Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Document new npm init magic

  • Loading branch information...
commit b41dd14bb796e73d9c791ec52a24d8a42bd5b1e6 1 parent c9436cb
isaacs isaacs authored
Showing with 13 additions and 0 deletions.
  1. +10 −0 doc/cli/config.md
  2. +1 −0  doc/cli/init.md
  3. +2 −0  lib/utils/config-defs.js
10 doc/cli/config.md
View
@@ -375,6 +375,16 @@ Sets a User-Agent to the request header
A white-space separated list of glob patterns of files to always exclude
from packages when building tarballs.
+### init-module
+
+* Default: ~/.npm-init.js
+* Type: path
+
+A module that will be loaded by the `npm init` command. See the
+documentation for the
+[init-package-json](https://github.com/isaacs/init-package-json) module
+for more information, or npm-init(1).
+
### init.version
* Default: "0.0.0"
1  doc/cli/init.md
View
@@ -20,5 +20,6 @@ without a really good reason to do so.
## SEE ALSO
+* <https://github.com/isaacs/init-package-json>
* npm-json(1)
* npm-version(1)
2  lib/utils/config-defs.js
View
@@ -157,6 +157,7 @@ Object.defineProperty(exports, "defaults", {get: function () {
, group : process.platform === "win32" ? 0
: process.env.SUDO_GID || (process.getgid && process.getgid())
, ignore: ""
+ , "init-module": path.resolve(home, '.npm-init.js')
, "init.version" : "0.0.0"
, "init.author.name" : ""
, "init.author.email" : ""
@@ -240,6 +241,7 @@ exports.types =
, "https-proxy" : [null, url]
, "user-agent" : String
, ignore : String
+ , "init-module": path
, "init.version" : [null, semver]
, "init.author.name" : String
, "init.author.email" : String
Please sign in to comment.
Something went wrong with that request. Please try again.