From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/path-exists/readme.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'node_modules/path-exists/readme.md') 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) -- cgit v1.2.3