Deno

D

Deno

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

Join

Is there a good dataframe library for deno?

I use the nodejs bindings for pola.rs for now but I'd like to move from nodejs to deno. This is my last blocker. Pola.rs is written in Rust. Would I have to wait for the wasm version of it?...

how do I use an array of test data pairs with Deno Test?

Is there a way for me to run an array of test data pairs? If I do it like this, it will stop after the first failure. ```...

[resolved] CI failure TS2684

Hey, I'm currently working on a pull request for the Astro project. Unfortunately the CI doesn't like my code despite the latest Deno version (1.26.1). Does anyone know what the reason is and can possibly give me a solution? GitHub Actions run: https://github.com/withastro/astro/actions/runs/3200178618/jobs/5226807106....

type a whole directory to make sure each file in the directory exports a default module of a type.

Can you type a whole directory to make sure that every file in the directory is exporting a default module of a certain type im making a library, and it reads a directory named commands in the users current working directory, each file in the commands directory should export a default object of type Command ...

help me

how do i get the contents of the html, i tried this, but its not logging

How do I declare something to be an objectID

How do I declare id to an ObjectId in doSomethingById deps.ts ```...

how do I add something to the deps.ts file that isn't in curly braces?

I have
import formatRelative from "https://deno.land/x/date_fns@v2.22.1/formatRelative/index.ts";
import formatRelative from "https://deno.land/x/date_fns@v2.22.1/formatRelative/index.ts";
...

FindCursor

If I want to get the FindCursor type from the mongo package do I do it like this? ``` export type {FindCursor} from "https://deno.land/x/mongo/src/collection/commands/find.ts"; ...

extract generic type of generic class

how to get typeof generic type in generic class
class GenericClass<T> {}
class GenericClass<T> {}
i want to extract type T...

Github Repository File Tree Generator based on Deno?

Is there some project file tree generator written in TS / Deno?

From where can I get parseArgs?

From where can I get parseArgs? The example import parseArgs from "https://github.com/bartlomieju/parseargs/index.ts";...

How to import the Image class to Deno Fresh?

I'm trying to access an image's naturalHeight and naturalWidth. But when I construct the object new Image() I get a Reference Error that it is not defined. I figured I could import it from a preact module or something similar to (import {Image} from 'preact/image), but I simply couldn't find out from which module to import it.

upload files formdata

How can I upload files with multipart/form-data using fetch?

Import local typescript file so both Deno (LSP) and TS work?

Seems like Deno wants the import to end with .ts while TS wants no file extension. Is there any way to change either of them to accept the other?...

sub sub domain on deno.dev

Is it possible to create a sub sub domain with deno.dev, example, invite.my-bot.deno.dev, support.my-bot.deno.dev, discord.my-bot.deno.dev ?

Can I run an express application under deno

Or do I need to port it to Oak? Is there an "express -> oak" cheatsheet ?...

how to cli run node modules without --compat

So deno run --compat has now been removed in favor of npm: specifiers https://deno.com/blog/v1.26#--compat-mode-removed. I am sure this consolidates a lot of code, but I am unsure how I can gain back certain functionality. For instance, I could run a solidjs template out of the box from deno with compat like so: deno run --compat --unstable --allow-env --allow-read --allow-run --allow-net node_modules/.bin/vite dev Using npm specifiers, I dont seem to have the same capabilities. deno run --compat --unstable --allow-env --allow-read --allow-run npm:vite...

mongodb indexes

Is there something for deno that supports created indexes for mongodb?

Intellisense on an import not working, works for friend

I cannot for the life of me get import * as bsdeno from "https://raw.githubusercontent.com/KivalEvan/BeatSaber-Deno/main/types/beatmap/v3/mod.ts" to have intellisense. I try typing const b: bsdeno. and nothing shows up. I tried restarting TS and deno language servers, tried restarting VSC, tried updating deno, and restarting my computer. No dice.. my friend is using the exact same import and intellisense is working fine....
me