diff options
author | isaacs <i@izs.me> | 2012-03-14 16:39:15 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-14 16:44:36 -0700 |
commit | f631c1d73b83d8c10b4121fb060f5817db6811d3 (patch) | |
tree | 2f881e2a7fd9204bf58a9388d526060556fff2e3 /deps/npm/doc | |
parent | ad5a108dfd5bb0a0b46c0f328adda28fa4edcd8e (diff) | |
download | node-new-f631c1d73b83d8c10b4121fb060f5817db6811d3.tar.gz |
Update npm to 1.1.9
Diffstat (limited to 'deps/npm/doc')
-rw-r--r-- | deps/npm/doc/cli/config.md | 22 | ||||
-rw-r--r-- | deps/npm/doc/cli/json.md | 32 |
2 files changed, 53 insertions, 1 deletions
diff --git a/deps/npm/doc/cli/config.md b/deps/npm/doc/cli/config.md index 9d90f4024e..049a51ea4d 100644 --- a/deps/npm/doc/cli/config.md +++ b/deps/npm/doc/cli/config.md @@ -218,6 +218,28 @@ See also the `strict-ssl` config. The location of npm's cache directory. See `npm-cache(1)` +### cache-max + +* Default: Infinity +* Type: Number + +The maximum time (in seconds) to keep items in the registry cache before +re-checking against the registry. + +Note that no purging is done unless the `npm cache clean` command is +explicitly used, and that only GET requests use the cache. + +### cache-min + +* Default: 0 +* Type: Number + +The minimum time (in seconds) to keep items in the registry cache before +re-checking against the registry. + +Note that no purging is done unless the `npm cache clean` command is +explicitly used, and that only GET requests use the cache. + ### color * Default: true on Posix, false on Windows diff --git a/deps/npm/doc/cli/json.md b/deps/npm/doc/cli/json.md index 0ded878944..16b2ad931c 100644 --- a/deps/npm/doc/cli/json.md +++ b/deps/npm/doc/cli/json.md @@ -428,7 +428,7 @@ node that your stuff works on: { "engines" : { "node" : ">=0.1.27 <0.1.30" } } And, like with dependencies, if you don't specify the version (or if you -specify "*" as the version), then any version of node will do. +specify "\*" as the version), then any version of node will do. If you specify an "engines" field, then npm will require that "node" be somewhere on that list. If "engines" is omitted, then npm will just assume @@ -439,6 +439,36 @@ are capable of properly installing your program. For example: { "engines" : { "npm" : "~1.0.20" } } +## os + +You can specify which operating systems your +module will run on: + + "os" : [ "darwin", "linux" ] + +You can also blacklist instead of whitelist operating systems, +just prepend the blacklisted os with a '!': + + "os" : [ "!win32" ] + +The host operating system is determined by `process.platform` + +It is allowed to both blacklist, and whitelist, although there isn't any +good reason to do this. + +## cpu + +If your code only runs on certain cpu architectures, +you can specify which ones. + + "cpu" : [ "x64", "ia32" ] + +Like the `os` option, you can also blacklist architectures: + + "cpu" : [ "!arm", "!mips" ] + +The host architecture is determined by `process.arch` + ## preferGlobal If your package is primarily a command-line application that should be |