aboutsummaryrefslogtreecommitdiff
path: root/node_modules/pkg-conf/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pkg-conf/readme.md')
-rw-r--r--node_modules/pkg-conf/readme.md8
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
-});
+})();
```