Skip to content

Commit

Permalink
Update reading-files-with-nodejs.md (nodejs#6684)
Browse files Browse the repository at this point in the history
change lang from "js" to "cjs" for consistency

Signed-off-by: huseeiin <122984423+huseeiin@users.noreply.github.com>
  • Loading branch information
huseeiin authored May 3, 2024
1 parent bcaca06 commit 050f395
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ try {

You can also use the promise-based `fsPromises.readFile()` method offered by the `fs/promises` module:

```js
```cjs
const fs = require('node:fs/promises');

async function example() {
Expand Down

0 comments on commit 050f395

Please sign in to comment.