diff --git a/README.md b/README.md index edd9797..5247f3d 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,12 @@ npm i fs.promises.exists ``` ## 👨🏻‍🏫 Examples -``` +```js import fsExists from 'fs.promises.exists'; await fsExists('./file-that-exists') -// > true +// true await fsExists('./file-that-doesnt-exist') -// > false +// false ``` diff --git a/index.d.ts b/index.d.ts index 0abf824..eb14d96 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,7 +6,7 @@ Returns a promise that resolves to a boolean indicating whether the file exists. import fsExists from 'fs.promises.exists'; await fsExists('./file-that-exists') -// > true +// true ``` */ declare const fsExists: (filePath: string) => Promise;