diff options
| author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
|---|---|---|
| committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
| commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
| tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/pkg-conf/readme.md | |
| parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) | |
update packages
Diffstat (limited to 'node_modules/pkg-conf/readme.md')
| -rw-r--r-- | node_modules/pkg-conf/readme.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/node_modules/pkg-conf/readme.md b/node_modules/pkg-conf/readme.md index 4776c227b..6f06b4f3a 100644 --- a/node_modules/pkg-conf/readme.md +++ b/node_modules/pkg-conf/readme.md @@ -8,7 +8,7 @@ Having tool specific config in package.json reduces the amount of metafiles in y ## Install ``` -$ npm install --save pkg-conf +$ npm install pkg-conf ``` @@ -27,10 +27,12 @@ $ npm install --save pkg-conf ```js const pkgConf = require('pkg-conf'); -pkgConf('unicorn').then(config => { +(async () => { + const config = await pkgConf('unicorn'); + console.log(config.rainbow); //=> true -}); +})(); ``` |
