diff options
Diffstat (limited to 'deps/npm/html/doc/misc/npm-scripts.html')
-rw-r--r-- | deps/npm/html/doc/misc/npm-scripts.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/npm/html/doc/misc/npm-scripts.html b/deps/npm/html/doc/misc/npm-scripts.html index d76bba3b61..7b333bcf8b 100644 --- a/deps/npm/html/doc/misc/npm-scripts.html +++ b/deps/npm/html/doc/misc/npm-scripts.html @@ -132,7 +132,9 @@ exported into the <code>node_modules/.bin</code> directory on <code>npm install< for instance, if you had <code>{"name":"foo", "version":"1.2.5"}</code> in your package.json file, then your package scripts would have the <code>npm_package_name</code> environment variable set to "foo", and the -<code>npm_package_version</code> set to "1.2.5"</p> +<code>npm_package_version</code> set to "1.2.5". You can access these variables +in your code with <code>process.env.npm_package_name</code> and +<code>process.env.npm_package_version</code>, and so on for other fields.</p> <h3 id="configuration">configuration</h3> <p>Configuration parameters are put in the environment with the <code>npm_config_</code> prefix. For instance, you can view the effective <code>root</code> @@ -232,5 +234,5 @@ scripts is for compilation which must be done on the target architecture.</li> <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr> </table> -<p id="footer">npm-scripts — npm@6.2.0</p> +<p id="footer">npm-scripts — npm@6.4.1</p> |