Skip to content

Commit

Permalink
add node: prefix on import
Browse files Browse the repository at this point in the history
  • Loading branch information
officeneerajsaini committed Feb 17, 2024
1 parent 6080cd7 commit cf06d74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ threshold, then your script starts asynchronously reading a file which
takes 95 ms:

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

function someAsyncOperation(callback) {
// Assume this takes 95ms to complete
Expand Down Expand Up @@ -257,7 +257,7 @@ callback is always executed first:

```js
// timeout_vs_immediate.js
const fs = require('fs');
const fs = require('node:fs');

fs.readFile(__filename, () => {
setTimeout(() => {
Expand Down

0 comments on commit cf06d74

Please sign in to comment.