Deno

D

Deno

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

Join

How deploy deno.fresh project for my VPS?

Hi I try setup fresh project: https://mint-house.app/ http://5.187.7.221:8000/ is there a task in fresh to generate static files ?...

Killing subprocess not working

Anyone know what I'm doing wrong when trying to kill a process? I have a process start another process like this: ```ts runProcess = Deno.run({...

Looking to chunk the HTML stream on the homepage to reduce initial page load. Are there good docs?

I'm currently reading and transforming every markdown file in the render function and i'd like to instead yield chunks of markup so the browser can get started rendering sooner. is there a paved path for me in fresh? thanks!

Rewind streams

So I'm using web streams (byob) for a project but in some cases I need to peek ahead. Is it possible to do this with webstreams? I want to read a static amount of bytes and then rewind by n bytes (between 0 and 4)...

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!