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
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-01-25 16:02:48 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-01-25 17:00:29 +0300
commitc56618c62854ea61f6f716dffe7bcac80b5f4144 (patch)
tree034ef2ce0c457ff30d2dcaffb03dcbc54301a964 /doc/misc/npm-config.md
parenta1f436570730c6e4a173ca92d1967a87c29b7f2d (diff)
doc: documented new searchlimit option
PR-URL: https://github.com/npm/npm/pull/15481 Credit: @zkat Reviewed-By: @iarna Reviewed-By: @bcoe
Diffstat (limited to 'doc/misc/npm-config.md')
-rw-r--r--doc/misc/npm-config.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md
index 9ae2ca83e..cafbedf53 100644
--- a/doc/misc/npm-config.md
+++ b/doc/misc/npm-config.md
@@ -851,12 +851,21 @@ Space-separated options that limit the results from search.
Space-separated options that are always passed to search.
+### searchlimit
+
+* Default: 20
+* Type: Number
+
+Number of items to limit search results to. Will not apply at all to legacy
+searches.
+
### searchstaleness
* Default: 900 (15 minutes)
* Type: Number
-The age of the cache, in seconds, before another registry request is made.
+The age of the cache, in seconds, before another registry request is made if
+using legacy search endpoint.
### send-metrics