Mrcool 🇵🇸
Mrcool 🇵🇸
DDeno
Created by m4rc3l05 on 9/21/2024 in #help
How to check if stdin is a file?
No description
20 replies
DDeno
Created by m4rc3l05 on 9/21/2024 in #help
How to check if stdin is a file?
stdin.isTerminal()
20 replies
DDeno
Created by mabasic on 7/19/2024 in #help
How to get source code from packages used in Helix editor?
The workaround is to vendor dependencies when you need this, add vendor: true to deno.json
5 replies
DDeno
Created by LambdAurora on 5/18/2024 in #help
How to properly publish a JSR package with browser compatibility?
you can still try to import your module in the browser using esm.sh for example import {parse} from https://esm.sh/jsr/@std/csv@0.224.0
8 replies
DDeno
Created by LambdAurora on 5/18/2024 in #help
How to properly publish a JSR package with browser compatibility?
Browser compatibility is still in the works
8 replies
DDeno
Created by babakfp on 4/5/2024 in #help
Deno Oak doesnt work when compiled to `.exe`
Thats a weird bug
console.log(0);
await import("https://deno.land/x/oak@14.2.0/mod.ts");
console.log(1);
console.log(0);
await import("https://deno.land/x/oak@14.2.0/mod.ts");
console.log(1);
when compiled it get stuck at the import
8 replies
DDeno
Created by DNA on 3/24/2024 in #help
Kill Deno.Command
const process = new Deno.Command("ls").spawn()
// kill -> process.kill()
// wait -> await process.status
const process = new Deno.Command("ls").spawn()
// kill -> process.kill()
// wait -> await process.status
10 replies
DDeno
Created by Mark G on 11/2/2023 in #help
In-browser testing
for a deno first framework there is https://github.com/lino-levan/astral
4 replies
DDeno
Created by Chiezo on 11/4/2023 in #help
CLI prompt consistent with Deno CLI
4 replies
DDeno
Created by foobar on 10/20/2023 in #help
wasmbuild & rust module path
Wasmbuild by default expect the project to contain a folder named rs_lib, so you need to run it from the outside of that folder You can also just use deno task wasmbuild new, to see what's the default layout looks like
3 replies
DDeno
Created by rabbit_rabbit on 10/10/2023 in #help
compiled artifact can't find deno.json
You can strace it to see where it's searching
5 replies
DDeno
Created by alexp95 on 10/11/2023 in #help
Can you run Deno.serve in a pooled thread mode?
I think you have to use workers for anything that involves threads
2 replies
DDeno
Created by leigna on 9/30/2023 in #help
Anyway to use deno fmt within a script itself without having to call deno again?
9 replies
DDeno
Created by leigna on 9/30/2023 in #help
Anyway to use deno fmt within a script itself without having to call deno again?
Turns out the author already expose deno wasm wrapper
9 replies
DDeno
Created by leigna on 9/30/2023 in #help
Anyway to use deno fmt within a script itself without having to call deno again?
Deno uses dprint internally which uses wasm plugins to format
9 replies
DDeno
Created by leigna on 9/30/2023 in #help
Anyway to use deno fmt within a script itself without having to call deno again?
nope unfortunately there are issues on the deno repo about adding such functions (exposing deno cli to scripts) but it never gained any traction
9 replies
DDeno
Created by leftdev on 9/11/2023 in #help
Bunle OAK static assets to the compiled binary
I've seen https://github.com/NfNitLoop/deno-embedder recommend, it looks good haven't tried it
3 replies
DDeno
Created by noxifoxi on 8/28/2023 in #help
Deno language server stops working in VS Code
what happens without the exclude ? the lsp crashes ?
52 replies
DDeno
Created by pronoob on 9/4/2023 in #help
Is WASM generally faster than using Deno FFI?
I doubt it, you can benchmark though
17 replies
DDeno
Created by noxifoxi on 8/28/2023 in #help
Deno language server stops working in VS Code
which folder do you have that have that many files ?, beacuse the lsp is trying to preload them all
52 replies