Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLaurie Harper <laurie@holoweb.net>2011-04-06 10:58:10 +0400
committerisaacs <i@izs.me>2011-04-06 21:19:31 +0400
commitacccfda632d936dad4c66b86bc8a2edbfd337935 (patch)
treeecf3d85825bbd36f0b172add84dbf9a55ee30817 /doc
parent364dfc628c1625f5c3be4c515beec2cb15952146 (diff)
Default version and auther info from config for `npm init`.
Read the initial value of a package's `version`, `author.name`, `author.email` and `author.url` properties from .npmrc when running `npm init`, allowing the user to set defaults for these fields.
Diffstat (limited to 'doc')
-rw-r--r--doc/config.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/config.md b/doc/config.md
index 8b0d43872..244d38e91 100644
--- a/doc/config.md
+++ b/doc/config.md
@@ -249,6 +249,34 @@ user.
The gzip binary
+### init.version
+
+* Default: "0.0.0"
+* Type: String
+
+The value `npm init` should use by default for the package version.
+
+### init.author.name
+
+* Default: "0.0.0"
+* Type: String
+
+The value `npm init` should use by default for the package author's name.
+
+### init.author.email
+
+* Default: "0.0.0"
+* Type: String
+
+The value `npm init` should use by default for the package author's email.
+
+### init.author.url
+
+* Default: "0.0.0"
+* Type: String
+
+The value `npm init` should use by default for the package author's homepage.
+
### logfd
* Default: stderr file descriptor