Deno

D

Deno

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

Join

Re-loading a file in the repl

Is there anyway to do this? IE modify a file I'm working on, and reload it in the repl, without exiting and importing again. (I am aware this exact same issue exists in node and is likely a cultural issue, but other repls can do it and I miss it)...

NPM compatibility

notion.databases.query works under nodejs but fails for me under Deno. it lints and checks ok and doesn't complain when I start it up ```...

How to import Definitely Typed modules into Deno project?

I'm trying to include a definitely typed module into the deno project, so that the types are available globally. In this case, I'm trying to include @types/three and I've tried various ideas including: ```javascript...

error Unsupported scheme node for module `nodemodule`. Supported schemes

I'm trying to import a module using:
import { example } from "npm:example";
import { example } from "npm:example";
Inside example, there's this line:...

esbuild_deno_loader importing Deno modules

A dependancy I use imports modules like "fs" and I want esbuild_deno_loader to treat them as external but currently get this error:
✘ [ERROR] [plugin deno] specifier was a bare specifier, but was not remapped to anything by importMap. deno:https://cdn.jsdelivr.net/npm/assemblyscript@0.20.3/dist/asc.js:7:6107:...

Static compilation of deno modules

Is there a way to statically compile libraries into the .js bundle instead of dynamically retrieving them from deno.land. The point is that I would like to test the Boa engine in the Deno environment and so the libraries are interfering. Of course the Deno internals have to be implemented afterwards. ...

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";...