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:
Diffstat (limited to 'node_modules/locate-path/readme.md')
-rw-r--r--node_modules/locate-path/readme.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/locate-path/readme.md b/node_modules/locate-path/readme.md
index f7b337bb2..a1d2e6283 100644
--- a/node_modules/locate-path/readme.md
+++ b/node_modules/locate-path/readme.md
@@ -6,7 +6,7 @@
## Install
```
-$ npm install --save locate-path
+$ npm install locate-path
```
@@ -19,14 +19,14 @@ const locatePath = require('locate-path');
const files = [
'unicorn.png',
- 'rainbow.png', // only this one actually exists on disk
+ 'rainbow.png', // Only this one actually exists on disk
'pony.png'
];
-locatePath(files).then(foundPath => {
- console.log(foundPath);
+(async () => {
+ console(await locatePath(files));
//=> 'rainbow'
-});
+})();
```