Deno

D

Deno

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

Join

Can't "Sign in" to deno deploy

Hi There, I can't sign in to deno deploy. The first time I try it works, and it sets up the GitHub App ok, and everything looks right in GitHub, but when I click "Sign In" on the deno deploy website I see this message, which means I can't "Add Project" ``` { "code": "githubAccountBlocked",...

Does Deno NPM support other registries like github npm registry?

Does Deno NPM support other registeries like github and if so, does it support private registeries?

Piping streams through a shell program (ffmpeg) and writing the output to a file

I've been trying to use ffmpeg on the backend of my super simple audio-uploading app. I can save the files as-uploaded, but after getting a Reader for the uploaded file I can't figure out how to pipe it into Deno.Command. The examples on the website don't quite capture my use case (the example shows piping output, but I can't get the magic combination to pipe in input that doesn't make it choke. I've got it working fine if I save the uploaded file to filesystem first and then pass its path to ffmpeg, but that's a hack, surely I can do this with just the streams?...

Using Deno to run JavaScript from Golang

I just started looking into this, but I'm looking for something like rogchap.com/v8go but it would be cool if I could run Deno instead of v8 So far I'm just thinking of saving some code into a file and then exec.CommandContext with deno run myfile.ts 🙂 any help with how to find any solutions in this area would be appreciated 🙂 so far I only been able to find some experiments in rust like https://austinpoor.com/blog/js-in-rs...

Rust compile deno_runtime error

Hi ferrisUpsideDown I've been this error when I'm compiling my code that uses deno_runtime lib. But I don't know what's this and how I can fix it. Can you help me? I'm using Ubuntu error: linking with cc failed: exit status: 1 ...
No description

lsp bug?

Is there any reason why intellisense would identify the type correctly, but after completion it would be treated as any? is this a bug with deno? Type should be as intellisense shows.

Convert m3u8 stream to mp4?

Hey. Whats the best /fastest way to convert a m3u8 stream (all files are in a local folder) to a normal mp4 file using deno?

`deno check` error: Cannot find name 'Deno'`

In my project, deno check has started producing the error TS2304 [ERROR]: Cannot find name 'Deno' . I've found a lot of reports about this error coming from the VS Code extension, but in my case it's coming from Deno itself, and the VS Code extension does NOT show this problem. I'm quite confused! Can anybody suggest a solution please?

Read CSV files inside zip file using the web streams API

I need to read a number of csv files inside a zip file. The basic example I've got working so far is the following: ```js import {BlobReader,ZipReader,ZipWriter} from 'https://deno.land/x/zipjs/index.js'...

Unable to find local file with installed deno module

I am working on porting the 'octoherd/cli' to Deno. One of the things it does is load a script module to execute. octoherd run -S script.js [...args] While working locally, the cli can find script.js , and everything works as expected. When I run deno install or compile, and try to run the CLI, I get the following error...

Importing NPM packages with `npm:` where package has `@` in the name

I want to import the package @hono/zod-openapi, version 0.30 I tried to add to my deno.json like so: ```json...

How to use KV Connect?

Hello there HelloThere Is there any plan an making an STD module for creating a server with proper scheme and types for this protocol? Though maybe my question is wrong and I misunderstood the proper usage for remote backend with KV..?...

dlopen() from web url

Hey, is it possible to provide a url to the dll file from a cdn server? For example if I want to dlopen the dll from this url: „https://raw.githubusercontent.com/TypeScripPlayground/Serial/main/ts/bin/windows.dll “ I get an error: Could not open library, module not found...

Does calling `bundle` inside a handler make sense?

hey all I wanted to understand if this is smart to do. I am using the cacheRoot option and wanted to know if that affects the way the code is executed here. As its being called inside a handler I am unsure if this is going to compile everytime or does the cacheRoot option speed that up? ```js app.get("/index.js", async (c) => { const { code } = await bundle(...

Deno hanging when trying to connect with Mongoose

When I try to connect to MongoDB using Mongoose the whole process just hangs until eventually timing out. I'm using a remote database with a user and password, and I know the URI is correct because I have used the same one on node.js projects. just
await mongoose.connect(`${env["MONGO_URI"]}`);
await mongoose.connect(`${env["MONGO_URI"]}`);
And I know it's getting the URI from the env file, I logged it to console ...

Embeding Dino compiled code within rust (Tauri) code, inside main.rs during build compilation.

Hi. Still not sure if this is question for Tauri community or Deno community, so I'll place on both Discord servers. Since Deno is built on Rust, is it be possible to write some functions is Deno and during tauri build (rust compilation) bundle them with rest of rust code and call that code via rust (Tauri) like invoke("my func") ? e.g....

DuckDB deno package broken & npm package segfaulting

Has anyone had any luck using DuckDB with Deno? I've tried with the npm package with segfaults on a basic test query, and with the denoland package with fails on initialization (which is especially unfortunate because it was made by one of the deno maintainers? oh well).

Get Deno working with ESLint

Hi! I'm trying out a Deno project and I want to get Deno TS Typing working with ESLint. I understand that Deno has it's own linter but I would like to use ESLint. https://github.com/Industrial/test-fp-ls...