deno Questions

3

Solved

I'm writing a word count program written in TypeScript that I'm trying to run in Deno. I'm invoking it with no arguments, just deno ./word_count.ts, so it should have the default read-only filesyst...
Autry asked 21/8, 2018 at 3:12

2

Solved

How to run Deno on Webfaction's CentOS 7 (64-bit)? It gives an error: deno: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by deno)
Autecology asked 14/3, 2019 at 7:21

3

Solved

Deno uses v8 to execute javascript but considering the fact that it directly runs typescript, I'm wondering if there is a performance penalty because of it or not. It seems it compiles the code o...
Niche asked 7/5, 2020 at 16:47

3

I am currently exploring Deno as proof-of-concept, and I am trying to find suitable way to setup linting within the project. Here is part of the eslint configuration that I am thinking of setting...
Hipbone asked 27/5, 2020 at 0:59

2

Solved

I'm using the fetch api to download an image in Deno. On the Response object, i'm calling the arrayBuffer() method, to get the final data of the response: const response = await fetch('https://www....
Trioxide asked 6/7, 2020 at 18:51

2

Solved

I would like to build a CLI application using Deno however I can't find a module that allows me to keep prompting the user for interaction similar to command line applications to the REPL module on...
Wardieu asked 21/5, 2020 at 23:14

1

Solved

How do you add a callback for the program exiting? Implementation in nodejs: process.on('exit', function (){ console.log('Goodbye!'); });
Conlan asked 11/6, 2020 at 19:33

2

I have installed a deno script by running : deno install https://deno.land/std/examples/welcome.ts How do I uninstall this script now ? Is there a subcommand in deno that can uninstall install...
Sunshine asked 20/5, 2020 at 6:43

1

Solved

Parallel in node: Can I know, in node.js, if my script is being run directly or being loaded by another script? I am looking for a way to tell if a deno script is being run direcly or if it's bein...
Christelchristen asked 7/6, 2020 at 18:38

1

Solved

I would like to know if a Deno app can return json or a web page depending on the url. If so, which response type would I use? I know for json it's (I'm using Drash): response_output: "application...
Perkins asked 5/6, 2020 at 7:1

3

I am using deno for the first time and The system cannot find the path specified. (os error 3) is the error I am getting. My code below:- import { Application } from 'https://deno.land/x/oak/mod.t...
Load asked 1/6, 2020 at 1:11

3

Solved

I'm working on a relative large typescript project, I'm using ts-node to run node testing and examples. As far as I understand, ts-node will compile ts files to js files and execute. Recently I he...
Ku asked 22/11, 2018 at 9:50

2

Solved

I am new to deno and currently exploring for a minimum viable project in deno. I want to like npm which downloads the npm packages inside the folder node_modules, similarly I want to see the deno p...
Azoic asked 14/5, 2020 at 14:1

2

Solved

I was trying to write to a file using Deno.writeFile await Deno.writeFile('./file.txt', 'some content') But got the following cryptic error: error: Uncaught TypeError: arr.subarray is not a fun...
Bionomics asked 26/5, 2020 at 10:17

4

Solved

I often find myself typing at least two or three permission options when playing with Deno: deno run --allow-net --allow-read --allow-env app.ts There's a way to escape explicit permissions.
Engud asked 18/5, 2020 at 20:34

1

Solved

I am trying to let a Web-Worker manage its state, meanwhile serving multiple async requests. worker.ts file let a =0; //this is my worker's state let worker=self as unknown as Worker; worker.on...
Thundercloud asked 28/5, 2020 at 23:44

1

Solved

For example, suppose I have the following code: Deno.run({cmd: ['echo', 'hello']}) How do I collect the output of that command which is hello ?
Transept asked 28/5, 2020 at 9:56

1

Solved

I wrote a couple of apis for a Deno POC. This is the route code: const router = new Router() router.get('/posts', getPosts) .get('/posts/:id', getPostsById) For the second route, I am able to ...
Exhibitioner asked 26/5, 2020 at 18:48

2

Solved

In Deno it is possible to version the dependencies in the import statement, and there's no package.json like with npm. But how to managed it's URLs and versions in a single place? I will have mul...
Recalesce asked 20/5, 2020 at 16:2

4

Solved

I tried with deno -V, it gives only deno's version and does not include typescript version. $deno -V deno 1.0.0-rc2
Renaterenato asked 17/5, 2020 at 16:47

2

One of the demos that really convinced me of the power of Node was the simple TCP chat server that Ryan Dahl presented in this video: https://www.youtube.com/watch?v=jo_B4LTHi3I&t=28m23s Here'...
Angele asked 16/5, 2020 at 16:47

1

Solved

I'm playing around with Deno but I can't find the standard HTTP client. I also googled "deno http client" which gives me https://deno.land/x/std/http/client/, but the link is broken. Something was...
Tetrastichous asked 16/5, 2020 at 13:15

3

Solved

I have a Deno app, that I wish to pass some command line args to. I searched the manual, but found nothing. I tried to use the same commands used in Node.js, assuming they might be sharing some fo...
Galleywest asked 16/5, 2020 at 6:11

1

Solved

When writing a Deno script, sometimes they could be a executed from the command line using deno run but at the same time may contain libraries that can be consumed through an import from another sc...
Renault asked 15/5, 2020 at 23:31

1

Solved

How can I convert a string to a buffer? I tried: Uint8Array.from('hello world') but it isn't working
Boggers asked 15/5, 2020 at 7:6

© 2022 - 2024 — McMap. All rights reserved.