Questions tagged [deno]

A secure runtime for JavaScript and TypeScript.

Deno is a simple, modern, and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.

  • Secure by default. No file, network, or environment access, unless explicitly enabled.
  • Supports TypeScript out of the box.
  • Ships only a single executable file.
  • Has built-in utilities like a dependency inspector (deno info) and a code formatter (deno fmt).
  • Has a set of reviewed (audited) standard modules that are guaranteed to work with Deno deno.land/std
919 questions
0
votes
2 answers

How to install Deno on MacOS?

Can anyone explain how to install Deno in macOS properly?
Maksym Rudnyi
  • 443
  • 3
  • 7
0
votes
3 answers

Deno permissions issue - Uncaught PermissionDenied: network access

I'm trying out Deno and while running an example, I ran into error: $ deno run https://deno.land/std/examples/curl.ts https://example.com Download https://deno.land/std/examples/curl.ts Warning Implicitly using master branch…
Yangshun Tay
  • 49,270
  • 33
  • 114
  • 141
0
votes
1 answer

How to edit a file loaded with Deno?

Recently I started to play around with Deno and I was reading and coding follow the instructions on Deno manual. After a while, I tried to edit the content copied by the file but I cannot find how. Can someone help me? for (let i = 0; i <…
0
votes
1 answer

Deno not recognised in VS Code's Terminal

I'm sorry, I got this trouble on my VS Code terminal, Deno isn't recognized: But when I try to do it in my Windows command prompt in the exact same path, it works: Any idea how to fix that?
er bint
  • 1
  • 1
0
votes
3 answers

How to call the program with single command in linux?

My question may be wrong as I am completely don't know the exact way to define. What I am trying to figure it out is I have one program which is /home//.deno/bin/deno when I run this it executes the program but I want to create the shortcut way just…
0
votes
1 answer

How to read single character sequenses and special command sequences?

I am trying to read individual characters from standard input. According to this issue https://github.com/denoland/deno/issues/3614 it does not currently seem possible without the use of an end of file signal such as ENTER. Anyone know how I could…
M.Nar
  • 512
  • 1
  • 9
  • 24
0
votes
1 answer

Can I write multiple times to a file asynchronously in deno?

The nodejs documentation says the following about this issue: It is unsafe to use fs.write() multiple times on the same file without waiting for the callback. For this scenario, fs.createWriteStream() is recommended. Now, I couldn't find anything…
Take
  • 324
  • 3
  • 10
0
votes
2 answers

Read value logged to the console in Deno

How can I read a value logged to the console in Deno? I'm trying to write a test that checks if a function logs the right value to console. I've already tried this, but it can only read values manually typed into stdin. Getting values from Deno…
Ikechukwu Eze
  • 2,703
  • 1
  • 13
  • 18
-1
votes
0 answers

When I tried to access my locally created the HTTPS server using browser, the connection immediately dropped

The server run into the errors but when I open the https://localhost:8080/ using the browser. As follow: error: Uncaught (in promise) Http: error writing a body to connection: tls handshake eof: tls handshake eof for await (const req of…
fwqaaq
  • 1
-1
votes
1 answer

Plaid client axios "export error" in Supabase Deno edge function

I'm attempting to implement Plaid using Supabase edge functions, which use Deno. The library is imported using an import map from https://esm.sh/plaid@15.0.0. The client instance is created successfully, but when I call client.linkTokenCreate(...),…
pete
  • 2,739
  • 4
  • 32
  • 46
-1
votes
1 answer

Unable to send messages back to the client from the server using Oak websocket middleware in Deno

When using the below code, the echo2 message is never received by the client. The first message, echo1 -- which is prior to the await, is received by the client. If I remove the await, both messages are received by the client. I know the await is…
TimDog
  • 8,758
  • 5
  • 41
  • 50
-1
votes
1 answer

Possible to do server side events with deno fresh framework

Is it possible to use server side events for a fresh POST handler? I have a long server side process and would like to return some event updates to the client meanwhile?
Norfeldt
  • 8,272
  • 23
  • 96
  • 152
-1
votes
1 answer

How to hash a string using Deno

Given the string hello world how do I get the string b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 as provided by the "SHA256 Online" generator found here: https://emn178.github.io/online-tools/sha256.html. I'm looking to use Deno…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
-1
votes
1 answer

Deno file server hangs on client refresh

I've implemented a deno file server like this: import { WebServerSettings } from "../types.ts"; import { StatusCodes, ReasonPhrases } from "https://deno.land/x/https_status_codes@v1.2.0/mod.ts"; import { mime } from…
lviggiani
  • 5,824
  • 12
  • 56
  • 89
-1
votes
1 answer

Is it possible to absolutely prevent deletion of Objects (and objects) in JavaScript?

While it's possible to prevent deletion of Object properties by using freeze/seal/preventExtensions, I'd love to know whether it's possible to prevent deleting the object itself. For example, in case I create an object in the global scope, and want…
Cocktail
  • 19
  • 5