Deno

D

Deno

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

Join

Disable Deno VSCode TS types

This is a recent updates. I like to code in Javascript and the new types are incredibly distracting- I can't read the code. How to disable this please?...

discord.js with new npm imports

Has anyone successfully used https://www.npmjs.com/package/discord.js with Deno's new import functionality? I ran their basic example and found it hangs without error when trying to login using Client.login

Websocket client with headers

I'm trying to create a websocket client that has an authorization header. It seems that a lot of the functionality of websockets has been moved out of the standard library, and I don't see much in the core. Any advice on how to proceed? For reference, I'm trying to do the following in Deno, rather than by using websocat: https://trading-api.readme.io/reference/introduction#connecting...

Can I programatically trigger a SIGINT event?

I would like to trigger a SIGINT event from a file, is there a way to do this? For example in Node, you can do process.emit('sigint');

i think the language server is broken

was working perfectly fine last night, and im not sure how to fix

How to forward a reference to a component

I created this sample to exemplify what I don't understand. Using the Fresh framework, I created the following Input component: ```typescript import { JSX } from "preact"; interface Input...

[Fixed] Package cannot read a file from itself when loaded from url

I have a package A, which has to read an html file located at the package's root, such as the following file tree exists : --- mod.ts --- swagger.html Locally it works, but as soon as I load it into Package B from deno.land/x/ it cannot find the swagger.html file....

how can I enable Deno vscode all inlay hints at once?

There seem to be too many config options that I have to set to true. Is there a way to just enable everything inlay hints with one option?

--max-stack-size

I can set the maximum call stack size on deno?

Deno Subprocess piping is slow when piping large data between processes

I could be wrong about this but this is what I have been facing on my M1 Mac. The following code snippet, pipes stdout of one process to another, and it works seamlessly for small json data. ```js import { copyN } from "https://deno.land/std/io/util.ts";...

Deno Deploy --cert flag

I am using deno fresh and supabase postgres. When in local environment I use --cert flag to set ssl certificate, but in deno deploy I didn't know how to set --cert flag

Import from variable path?

Howdy - I'm trying to make my Cloudflare Workers app self-hostable in a Docker Container. To do this, I'm going to run it with Deno when self-hosting. Ideally I would like to change none of my actual application code and defer any environment-specific setup to different files. ...

What is the best database service to plug into your application hosted on Deno Deploy?

Deno Deploy is hosted on Google Cloud, but I was wondering: is a database service from another company, but also hosted on Google Cloud, would result in a good latency that resolve inside the same region datacenter, or will it fatally get out in the internet and induce terrible latency? What about a database service hosted on AWS then? Is anybody have numbers to share?...

Sharing streams

So I have a small project where I want to use streams. But now I need two different transform streams on the same input ```ts const file = await Deno.open(path); ...

How can I create connections pool for postgres with denodb?

How can I create connections pool for postgres with denodb?

Fresh and MDX

What is most proper way of using mdx with freshfresh kanalına mesaj gönder

TTY vs console.log vs stdin and setRaw for dummies?

Hi all! Would someone be able to clear some things out with regards to deno inputs and outputs: - what exactly is one referring to, when talking about TTY? (in deno) is it just another name for console, or some of the std streams (stdin/stdout/stderr) - what about raw mode? there has been Deno.setRaw() but apparently removed in Deno 1.26. I think there was at some point a writer/reader/stream.setRaw() method or somesuch, but they maybe disappeared too. What is raw mode supposed to do, and can one enable it in the current Deno version somehow. - does deno do a lot of processing on console.log(stuff) versus writing raw bytes to std streams? What kind of processing, if any? And is the amount of processing the same whether deno is running on a windows terminal/vs code terminal, or as a child process of another deno process? ...

Is there an event that triggers when an Oak Deploy instance is closing?

I cannot find anything in the Deploy docs, specifically. But I see that the Oak app runs a callback when the server closes. Something like this should work, I think: ```ts app.listen({ port: 8080 }).then(() => {...

How to get my Deno nameserver accessible to the internet?

This is how it's setup: ``` const socket = Deno.listenDatagram({ hostname: "127.0.0.1", port: 53,...