1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Show Description Of All npm Config Options as a JavaScript TIL

This commit is contained in:
jbranchaud
2024-03-02 09:46:39 -06:00
parent 5412e2e8b1
commit 8394d5bfaa
2 changed files with 19 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
_1386 TILs and counting..._
_1387 TILs and counting..._
---
@@ -486,6 +486,7 @@ _1386 TILs and counting..._
- [Running ES6 Specs With Mocha](javascript/running-es6-specs-with-mocha.md)
- [Scoping Variables With A Block Statement](javascript/scoping-variables-with-a-block-statement.md)
- [Short Circuit Concurrently When Process Fails](javascript/short-circuit-concurrently-when-process-fails.md)
- [Show Description Of All npm Config Options](javascript/show-description-of-all-npm-config-options.md)
- [Sleep For A Bit In Async Code](javascript/sleep-for-a-bit-in-async-code.md)
- [Sorting Arrays Of Objects With Lodash](javascript/sorting-arrays-of-objects-with-lodash.md)
- [Splat Arguments To A Function](javascript/splat-arguments-to-a-function.md)

View File

@@ -0,0 +1,17 @@
# Show Description Of All npm Config Options
In [Open Global npm Config File](open-global-npm-config-file.md), I showed how
you can access and modify the current npm config. The thing that stands out in
that file is the sheer number of config options.
What do they all mean?
To get "more than you probably want to know about npm configuration", open up
the npm config help with the following command:
```bash
$ npm help 7 config
```
There are a ton, so browse at your own peril. You'll notice that each option
lists its default value, the type of that value, and a description about usage.