diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-01-25 16:02:48 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2017-01-25 17:00:29 +0300 |
commit | c56618c62854ea61f6f716dffe7bcac80b5f4144 (patch) | |
tree | 034ef2ce0c457ff30d2dcaffb03dcbc54301a964 /doc/misc/npm-config.md | |
parent | a1f436570730c6e4a173ca92d1967a87c29b7f2d (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.md | 11 |
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 |