Skip to content

Commit

Permalink
docs: js syntax for code block
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Mar 4, 2021
1 parent de0f61b commit cbf23e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>;
Expand Down

0 comments on commit cbf23e9

Please sign in to comment.