summaryrefslogtreecommitdiff
path: root/deps/npm/doc/misc/npm-config.md
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/doc/misc/npm-config.md')
-rw-r--r--deps/npm/doc/misc/npm-config.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/deps/npm/doc/misc/npm-config.md b/deps/npm/doc/misc/npm-config.md
index 8f04a76010..88d30b62ca 100644
--- a/deps/npm/doc/misc/npm-config.md
+++ b/deps/npm/doc/misc/npm-config.md
@@ -179,6 +179,22 @@ a non-zero exit code.
What authentication strategy to use with `adduser`/`login`.
+### before
+
+* Alias: enjoy-by
+* Default: null
+* Type: Date
+
+If passed to `npm install`, will rebuild the npm tree such that only versions
+that were available **on or before** the `--before` time get installed.
+If there's no versions available for the current set of direct dependencies, the
+command will error.
+
+If the requested version is a `dist-tag` and the given tag does not pass the
+`--before` filter, the most recent version less than or equal to that tag will
+be used. For example, `foo@latest` might install `foo@1.2` even though `latest`
+is `2.0`.
+
### bin-links
* Default: `true`