We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778e5f7 commit 3034038Copy full SHA for 3034038
doc/api/buffer.md
@@ -2328,6 +2328,8 @@ The transcoding process will use substitution characters if a given byte
2328
sequence cannot be adequately represented in the target encoding. For instance:
2329
2330
```js
2331
+const buffer = require('buffer');
2332
+
2333
const newBuf = buffer.transcode(Buffer.from('€'), 'utf8', 'ascii');
2334
console.log(newBuf.toString('ascii'));
2335
// Prints: '?'
0 commit comments