deno Questions

5

Solved

Just like from IPython import embed; embed() but for node. I want to open a REPL shell programmatically and be able to at least read the local variables. Being able to change them as well is a plu...
Kennithkennon asked 16/5, 2020 at 11:0

6

I am trying to install Deno in my Ubuntu machine but I can't. Ubuntu Version is 18.04. I am using this command: curl -fsSL https://deno.land/x/install/install.sh | sh It has provided by Deno'...
Localism asked 13/2, 2020 at 15:39

4

Solved

I often find myself reading a large JSON file (usually an array of objects) then manipulating each object and writing back to a new file. To achieve this in Node (at least the reading the data por...
Hollister asked 23/9, 2019 at 21:21

2

Solved

When working with NodeJS, I can pass the arguments to a Node script like this: $ node node-server.js arg1 arg2=arg2-val arg3 And can get the arguments like so: // print process.argv process.a...
Headdress asked 3/6, 2020 at 6:51

1

Solved

i installed vesion of 1.10.2 on my pc and i want to use last vestion of deno so How can i update version of deno ? should I use install command and install it again or there is something like npm i...
Charron asked 8/6, 2021 at 21:40

1

I'am trying to use mapbox with deno Actually i'am trying this : import mapboxgl from 'https://dev.jspm.io/mapbox-gl'; mapboxgl.accessToken = "toto"; var map = new mapboxgl.Map({ contai...
Felisafelise asked 13/5, 2021 at 20:54

1

Here is my code : /** * map.ts */ // @deno-types="./libs/@types/geojson/index.d.ts" // @deno-types="./libs/@types/mapbox-gl/index.d.ts" mapboxgl.accessToken = "toto&qu...
Congruity asked 14/5, 2021 at 1:30

1

Solved

I want to convert a html string to a html element in deno with typescript. I found this function for it: function createElementFromHTML(htmlString: string) { var div = document.createElement('div'...
Cleek asked 5/12, 2020 at 11:51

5

Solved

It works just once for the below code import { graphql, GraphQLSchema, GraphQLObjectType, GraphQLString, buildSchema, } from "https://cdn.pika.dev/graphql/^15.0.0"; import { serve } from "htt...
Esplanade asked 21/5, 2020 at 20:8

4

In node.js we can use delete require.cache[require.resolve(somePath)]; to delete the require cache in runtime. Is there a similar way to delete runtime import cache in deno?
Burglary asked 20/5, 2020 at 2:21

1

Solved

Can't understand the difference between the two examples that I just read at the end of the Deno manual section on the deno bundle command: Bundles can also be loaded in the web browser. The bundl...
Unsnap asked 4/4, 2021 at 22:52

3

Solved

Is there some libraries or modules for Google OAuth in Deno.js? I am trying to impelemnt google login on my web application and use this google account for uploading youtube videos in deno.js. I am...
Greenroom asked 10/7, 2020 at 11:5

2

Solved

Was reading the homepage of deno the new JS runtime I saw the following code: import { serve } from "https://deno.land/[email protected]/http/server.ts"; const s = serve({ port: 8000 }); con...
Libel asked 20/5, 2020 at 15:23

8

Solved

The command I run is: curl -fsSL https://deno.land/x/install/install.sh | sh The output is: ######################################################################## 100.0% Archive: /root/.deno/...
Altogether asked 17/5, 2020 at 12:26

1

Solved

If I do deno --help it shows: compile = Compile the script into a self-contained executable install = Install script as an executable What's the difference between these two commands?
Sinuosity asked 14/1, 2021 at 7:38

2

Solved

How to give global permission to all websites (for debugging stuff) in my deno project like.. deno run --allow-net=* deno.ts or something like that
Unlimber asked 14/5, 2020 at 20:9

6

I recently update deno from v1.3.0 to v1.4.0. Before updating, my code doesn't have any problem, but after that i have this error: error: TS1205 [ERROR]: Re-exporting a type when the '--isolatedMod...
Riant asked 14/9, 2020 at 9:29

1

Solved

I've tried using the following code in my measure.ts script: Deno.DatagramConn.send(...) When I run my script like this: deno run --unstable --allow-all measure.ts I get the following error: Prope...
Acne asked 8/12, 2020 at 19:33

2

Solved

I have a script I'd like to run... maybe something like this: #!/usr/bin/env deno console.log('hello world'); The shebang part is confusing. When I do it as above, with the filename dev, I get: e...
Nel asked 22/7, 2020 at 22:12

1

Solved

How to create and validate JSON Web Token in Deno? I am new to the Deno runtime, so it would be helpful to have a sample to get started with JWT in Deno.
Quinine asked 23/10, 2020 at 6:30

2

Solved

Attempting to import a module in the Deno REPL results in the following error: Uncaught SyntaxError: Cannot use import statement outside a module at evaluate (rt/40_repl.js:60:36) at replLoop (rt...
Boot asked 13/8, 2020 at 20:19

1

Solved

I downloaded the example app from Drash (https://github.com/drashland/deno-drash) $ deno run --allow-run --allow-read --allow-write --allow-net https://deno.land/x/drash/create_app.ts --api and try...
Daggerboard asked 14/9, 2020 at 10:34

1

Solved

I am currently developing a proof-of-concept REST api app with Deno and I have a problem with my post method (getAll et get working). The body of my request does not contain data sent with Insomnia...
Saltpeter asked 3/9, 2020 at 16:54

1

Solved

I've got an error like so: error: Cannot resolve module "<path>/src/routes" from "<path>/src/index.ts" Imported from "file:///F:/Development/k8demo/api-deno/src...
Suspicion asked 22/8, 2020 at 17:45

2

Solved

How can I allow read access to CWD (current working directory) used by Deno.cwd()? I want explicit permission only for CWD. I don't want to allow every read with plain --allow-read flag. I've tried...
Bonhomie asked 23/7, 2020 at 10:8

© 2022 - 2024 — McMap. All rights reserved.