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/path-exists/readme.md | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/path-exists/readme.md')
-rw-r--r-- | node_modules/path-exists/readme.md | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/node_modules/path-exists/readme.md b/node_modules/path-exists/readme.md index 8fbcd68df..1b65fa705 100644 --- a/node_modules/path-exists/readme.md +++ b/node_modules/path-exists/readme.md @@ -20,9 +20,9 @@ $ npm install --save path-exists ```js // foo.js -var pathExists = require('path-exists'); +const pathExists = require('path-exists'); -pathExists('foo.js').then(function (exists) { +pathExists('foo.js').then(exists => { console.log(exists); //=> true }); @@ -33,13 +33,18 @@ pathExists('foo.js').then(function (exists) { ### pathExists(path) -Returns a promise that resolves to a boolean of whether the path exists. +Returns a promise for a boolean of whether the path exists. ### pathExists.sync(path) Returns a boolean of whether the path exists. +## Related + +- [path-exists-cli](https://github.com/sindresorhus/path-exists-cli) - CLI for this module + + ## License -MIT © [Sindre Sorhus](http://sindresorhus.com) +MIT © [Sindre Sorhus](https://sindresorhus.com) |