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:
authorRebecca Turner <me@re-becca.org>2017-02-25 03:17:18 +0300
committerRebecca Turner <me@re-becca.org>2017-04-15 06:16:22 +0300
commitf5e8becd05e0426379eb0c999abdbc8e87a7f6f2 (patch)
treed2082596c8b85dba7278690f1f6e9f04628d2400 /doc/misc/npm-config.md
parent8abb3c4e8f93892a3c60e51feb6c268eeb5605b4 (diff)
npm: Add timing diagnostics on --loglevel=timing
Diffstat (limited to 'doc/misc/npm-config.md')
-rw-r--r--doc/misc/npm-config.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md
index 463e6f192..4f987436d 100644
--- a/doc/misc/npm-config.md
+++ b/doc/misc/npm-config.md
@@ -960,6 +960,17 @@ Because other tools may rely on the convention that npm version tags look like
`v1.0.0`, _only use this property if it is absolutely necessary_. In
particular, use care when overriding this setting for public packages.
+### timing
+
+* Default: `false`
+* Type: Boolean
+
+If true, writes an `npm-debug` log to `_logs` and timing information to
+`_timing.json`, both in your cache. `_timing.json` is a newline delimited
+list of JSON objects. You can quickly view it with this
+[json](https://www.npmjs.com/package/json) command line:
+`json -g < ~/.npm/_timing.json`.
+
### tmp
* Default: TMPDIR environment variable, or "/tmp"