DenoDDeno
Powered by
ashA
Denoβ€’3y agoβ€’
9 replies
ash

Problem with parsing `base64url` from a `Buffer (node)`

help , it works in bun but not in Deno, I don't know if is a bug from them or it's not implemented here,it also works in node:

import BufferProto from "node:buffer"

 BufferProto.Buffer.from(
    "IntcImhlbGxvXCI6XCJoZGQvZStpXCJ9Ig"
  ,
    "base64url"
 ).toString() 

//deno: ""
//bun: "{\"hello\":\"hdd/e+i\"}"
//node:"{\"hello\":\"hdd/e+i\"}"
import BufferProto from "node:buffer"

 BufferProto.Buffer.from(
    "IntcImhlbGxvXCI6XCJoZGQvZStpXCJ9Ig"
  ,
    "base64url"
 ).toString() 

//deno: ""
//bun: "{\"hello\":\"hdd/e+i\"}"
//node:"{\"hello\":\"hdd/e+i\"}"
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno compile with @types/node (Buffer) issue
KlexikKKlexik / help
8mo ago
Buffer.from equivalent in deno?
0xMogate00xMogate / help
2y ago
Deno and `npm:mongodb` problem with `node:`?
abiAabi / help
3y ago