Skip to content

Commit

Permalink
docs: use node: prefix to bypass require.cache call for builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Sep 10, 2023
1 parent a79c3f9 commit 0bb2466
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 @@ -26,9 +26,9 @@ If you are looking for the documentation for the legacy callback-api please see

```js
const fastify = require('fastify')()
const fs = require('fs')
const util = require('util')
const { pipeline } = require('stream')
const fs = require('node:fs')
const util = require('node:util')
const { pipeline } = require('node:stream')
const pump = util.promisify(pipeline)

fastify.register(require('@fastify/multipart'))
Expand Down
2 changes: 1 addition & 1 deletion callback.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
```js
const fastify = require('fastify')()
const concat = require('concat-stream')
const fs = require('fs')
const fs = require('node:fs')
const pump = require('pump')

fastify.register(require('@fastify/multipart'))
Expand Down

0 comments on commit 0bb2466

Please sign in to comment.