Deno

D

Deno

Chat about Deno, a modern runtime for JavaScript and TypeScript.

Join

Before generating coverage report, run `deno test --coverage` to ensure consistent state.

Why would this happen, if I did run deno test --coverage before running deno coverage...?

module registry alternatives then deno.land

Anyone knows some other registries besides deno.land/x . I already know about nest.land. Looking for something which does not need a github repo....

How to use MUI in Fresh?

Is there a way to use Material UI components library in Fresh? Here is the code I tried: ```tsx import { Button } from "https://esm.sh/@mui/material@5.11.3"; ...

error Missing transpiled source code for

When I try to create a coverage report for my project, I get an error saying one of my files is missing transpiled code? What does that mean? You can run the coverage task here to reproduce the error: https://github.com/chrisabrams/nova...

Possible to check of a file is being run as worker?

if (import.meta.main) {
main()
}
if (import.meta.main) {
main()
}
...

using both nodejs & deno

I have to turn in my class assignments in nodejs. I am happier with deno. Is there a standard way to write code so that the same code base can be used both ways?...

How to get Deno's default compilerOptions value?

I want to add more compilerOptions.lib options like this: ``` "compilerOptions": { "jsx": "react-jsxdev", "jsxImportSource": "react",...

deno.run not working as expected

so when i run mysql --defaults-extra-file=./tmpcnf_from_f_execute_query.cnf -e "DROP DATABASE test_database" i get the correct expected error message ERROR 1008 (HY000) at line 1: Can't drop database 'test_database'; database doesn't exist but when i try to run this with deno ```javascript ...

Is there any way to trace where permissions prompts are coming from?

I'm running some code through Deno and its prompting for some permissions. How can I find out where these are coming form?

Getting error `Unrecognized algorithm name` on `crypto.subtle.importKey()`

I can't figure this one out. I've done some searching and found a list of supported algos at https://deno.land/std@0.167.0/crypto/mod.ts See anything I'm doing wrong? I tried it without the hash as well. Here's a snippet: ```js...

modifying the Deno object

heyo. is there any way to add our own properties to the Deno object? I read something which said since v1.12 it's no longer frozen but looks like that is no longer the case. wanting to add my own version to Deno.version. thanks!

What postgres module should I use?

I've been using /x/postgres for almost a year but I see that /x/postgresjs has been updated more recently (and I've seen some articles use it here and there). Does it have any advantage over /x/postgres?

Deno bench json

Does deno bench support json output? I want to visualize some of the output data in graphs but I don't really want to parse the output

can i track hits to static?

i would like to track downloads of my rss.xml file that's in static/

fetch - change user agent

Anyway to change user agent and other fetch parameters. There is one api I have not called in like 2 months, but it still shows up as ratelimited(cloudflare btw). However I can access it via insomnia or my web browser just fine so I am assuming deno headers are the problem...

Is it possible to rename a module in third party modules?

I've created a module and I would like to rename it as I think I broke convention. Is this possible?