ash
ash
DDeno
Created by ash on 11/8/2024 in #help
Copying from a repository from jsr
At the moment I'm working on my integrations with jsr with deno so I can stop using npm to install the project I'm currently working on, and basically I don't want to depend on bpm to install bun: using npm :
npx create-vixeny
npx create-vixeny
and it just works, but trows with jsr:
deno run -A jsr:@vixeny/create@0.4.3
deno run -A jsr:@vixeny/create@0.4.3
and the issue here is that I need to download the project to copy from it to the desired dir and the error I'm getting is because fileURLToPath(import.meta.url) throws , here some extra information that I added:
import.meta.url is: https://jsr.io/@vixeny/create/0.4.3/bin/config.mjs
cwd is : /home/YOUR_CURRENT_DIR
import.meta.url is: https://jsr.io/@vixeny/create/0.4.3/bin/config.mjs
cwd is : /home/YOUR_CURRENT_DIR
I know that the issue is that the schema is not file:, I also tried to use --cached-only to see if this imports the project locally
1 replies
DDeno
Created by ash 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