We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const NodeBuffer = require('node:buffer').Buffer; const BrowserBuffer = require('buffer/').Buffer; console.log(NodeBuffer.from('Hello, world!', 'utf8').toString('base64url')); // works //> 'SGVsbG8sIHdvcmxkIQ' console.log(BrowserBuffer.from('Hello, world!', 'utf8').toString('base64url')); // fails
Error:
Uncaught TypeError: Unknown encoding: base64url slowToString index.js:544 toString index.js:606 encode +page.svelte:41 <anonymous> debugger eval code:1 [index.js:544:31](http://localhost:5173/node_modules/buffer/index.js) slowToString index.js:544 toString index.js:606 encode +page.svelte:41 <anonymous> debugger eval code:1
This may break some stuff, so should be fixed soon!
The text was updated successfully, but these errors were encountered:
@feross please merge #314
Sorry, something went wrong.
No branches or pull requests
Error:
This may break some stuff, so should be fixed soon!
The text was updated successfully, but these errors were encountered: