Deno

D

Deno

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

Join

How to install jupyter using deno v1.41.x

According to the documentation https://docs.deno.com/runtime/manual/tools/jupyter the command should be deno jupyter --unstable --instal. This leads to an error because --unstable no longer exists. But apparently there is also no flag named --unstable-jupyter? Is this a bug?...

Help with TypeScript namespaces - is this pattern supported?

Hi! I am attempting to model some classes in a Namespace for organization purposes. I would expect this pattern to work, the linter doesn't complain at least, but when I run deno test it fails with the error in the README. Is this not supported in Deno? I tried using triple slash directives as well but no luck. Thanks! https://github.com/CobyPear/deno-namespace-reproduction...

font regenerator for copying restriction purposes on Deno

I am developing a web reader PWA primarily for reading CJK character text. If I do not want users to bypass user select: none or other forms of copying restrictions in an F12 manner, is it an effective solution to randomly map all commonly used Unicode glyphs and CJK characters to E000-F8FF and F0000-10FFFF Private Use Area? I don't think the mapping generator should be a big problem, most of the information I need is provided on the Wikipedia and Unicode official websites....

examples of Deno+Llamacpp

Are there examples of Deno and Ollama/Llamacpp setups in typescript? Its should t be hard since it just an api call to the instance with Docker. Essentially I want to demonstrate if we can have a CUDA or MPS enabled image of llamacpp or ollama, as an api over the internet, and query it directly via a deno/fresh app running on Deno deploy or railway...

Is there a way to bundle multiple files into one file using `esbuild_deno_loader` and `esbuild`?

I'm trying to bundle multiple files in a single folder into one JS file that needs to end up in the static folder of Fresh. Is there a way to do that using esbuild_deno_loader and esbuild?

Deno.stdin raw map?

Does anyone have a map to which key is what raw buffer gotten from Deno.stdin? Like i can just search in a map, what key 27 represents? Also, i cant use stdin.setRaw(false) Code:...

Have the Deno deploy templates disappeared?

Good morning, I can't find https://dash.deno.com/new from the account dashboard panel. Are the templates going to be removed?

IPC (ZeroMQ)

I want to create a service with Deno that should be callable by other (non-deno) processes running on the same machine. I've tried using ZeroMQ for this but Deno doesn't seem to be supported (I can't get it to work) and given the drama surrounding the official ZeroMQ npm package I'm inclined to look for other solutions. I could always fall back to using http but does anyone know of a more performant IPC solution for Deno given this scenario?

Read child process I/O

I want to write a simple Deno CLI script using Deno.Command or dx that can read output from a shell utility. For example, gum input --placeholder=\"Enter your name\" displays a small text input, which I want to read the user input into Deno. - If I use a Deno.Command stdout: "inherit", then Deno doesn't have access to the stdout stream (containing the user name), just the file signal....

Cannot find name 'Deno'.ts(2304)

Hello, I am using VS Code and Typescript and I have this error. I have downloaded the latest extension as well as the CLI. I have the latest Typecript version as well. I have also enabled Dino in my workspace. Thanks for your help....
No description

Deno Fresh: TypeError: 'import', and 'export' cannot be outside of module

Deno Fresh: ```tsx // @deno-types="npm:@arcgis/core/interfaces.d.ts" import config from "npm:@arcgis/core@4.29/config.js"; import Bookmarks from "npm:@arcgis/core@4.29/widgets/Bookmarks.js";...

Ecosystem: @arcgis/core

https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-deno I've found an example importing @arcgis/core in their official repo to work with deno, however, I'm not sure whats best way forward in actually displaying the map. Should i use deno fresh or vannila ts without framework with deno or sveltekit, given the fact that @arcgis/core is a ES module written in vanilla js? What would be the best approach? Thanks!...

Kill Deno.Command

Is it possible to kill/end a Deno.command-instance? Example code: ```ts (async () => { let ffmpegProcess: Promise<Deno.CommandOutput> | undefined;...

Bundle ts code to ts using deno emit

When bundling code using https://deno.land/x/emit@0.38.2 it bundles into javascript but i want it to be typescript. is it possible to do this?

Cant find name 'Deno'

I want to use Deno in my type script program but when I try to use Deno it says "Cant find name 'Deno' I just installed it then restarted my PC and added the Deno extention to my VS Code can any one help me
No description

request body

yo. how to read request body if it's node:http server? rq.body is undefined rq.read() returns null interface of streams not working ofcourse...

OpenTelemetry instrumentation

Did anyone have some luck making OpenTelemetry instrumentation libraries work on Deno? I've seen some examples on the internet of @opentelemetry/instrumentation-fetch working, but I've been unable to make mine work so far. I did manage to find a workaround for that, but now I'm trying to get instrumentation for my SQL queries. I'm currently using drizzle-orm and tried to install @opentelemetry/instrumentation-pg. But just like the fetch instrumentation, it doesn't seem to be doing anything at all....

Import package from Azure DevOps repository

Hi ! 👋 I'm trying to import a private package from Azure DevOps Git repository. I can't make it work. Anyone has tried that before? I've seen the Github example with PAT and Azure DevOps is using a PAT as well....

How to use Tailwind css plugins in FRESH?

is it possible to use tailwind css plugins in Fresh project? if it is, how?...