ReallyBored
ReallyBored
DDeno
Created by ReallyBored on 9/18/2023 in #help
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\"}"
10 replies