deno Questions
2
I'm creating a React Native/Expo app that uses Deno on the backend. I've created an API in the backend that I can run locally on localhost:4000. When I try to use fetch to call the API in the Expo ...
Burkes asked 29/6, 2022 at 8:40
3
I haven't been able to find the right syntax/URL to import Lodash in a Deno program.
I tried this:
import _ from 'https://deno.land/x/[email protected]/lodash.js';
That gives the error "...
4
I tried Deno (https://deno.land/) in local pc and some of its examples and we have to run the server before executing the APIs in the local environment.
I need to host it in the server so that I c...
Luminous asked 29/5, 2020 at 8:24
5
Solved
The Deno TypeScript runtime has built-in functions, but none of them address checking the existence of a file or directory. How can one check if a file or directory exists?
Ophiology asked 18/6, 2019 at 23:4
5
Since it is not necessary to have package.json file with deno, how can I as a developer have a similar experience just as we have with npm scripts in package.json?
Double asked 12/5, 2020 at 22:54
4
Solved
I want to convert a Node.js project to Deno. Is there any guide available?
My current project has lots of NPM files and it's already in TypeScript.
Any tips?
Sizemore asked 13/5, 2020 at 8:53
2
Solved
I've just read through the Web API's from the Deno docs and seems like localStorage is implemented as a persisted SQLite and sessionStorage is implemented as a in-memory SQLite.
Whenever passing no...
Ecphonesis asked 8/10, 2022 at 8:21
1
Suppose I have the following snippet to create a worker in Deno and start it.
const worker = new Worker("./worker.ts", { type: "module", deno: true });
worker.postMessage({ comm...
Imprint asked 14/10, 2020 at 23:33
4
Solved
Deno is super cool. I saw it in the morning and want to migrate to deno now. I was trying to move my existing nodejs script to deno. Can any one help me on how to use npm modules in deno. I need es...
Tarnation asked 15/5, 2020 at 13:58
1
I have found this really cool example online on how to run a WebView with Deno.
Is it possible to call a function insided your Deno App from an HTML button element placed inside the html template?
...
Wiring asked 30/8, 2020 at 12:34
1
Solved
I want to strongly type the context.state object provided by oak in deno. I have already seen approaches how this could possibly work (e.g. Deno oak v10.5.1 context.cookies never being set), but ha...
Burnsides asked 18/7, 2022 at 11:4
2
Solved
I'm trying to download a 10GB file, but only 4GB get saved to disk, and memory is growing a lot.
const res = await fetch('https://speed.hetzner.de/10GB.bin');
const file = await Deno.open('./10gb....
Kantos asked 21/5, 2020 at 22:48
1
Solved
How can I limit Deno RAM and CPU usage when running js/ts scripts?
deno run https://deno.land/[email protected]/examples/welcome.ts
Greenebaum asked 18/2, 2021 at 10:46
3
Solved
I want to uninstall Deno and all of its cached packages. Where it caches its packages? And how to make sure that all of cached packages are uninstalled before installing a new version of Deno.
Grantley asked 3/6, 2020 at 5:51
1
Solved
When attempting to set cookies in oak, the cookies property of the context is never changed and the value is always returned undefined even when using the example in their docs.
app.use(async ctx =...
Nananne asked 2/5, 2022 at 20:11
3
Solved
Does Deno have a utility function that dumps a Object or primitive to a string like Node.js util.inspect?
For example in Node.js I create an json object and want to dump out its contents in Node:
...
Dick asked 11/5, 2020 at 3:49
2
Solved
I'm trying to use Supabase with deno.
I used import { createClient } from "https://esm.sh/@supabase/supabase-js" but it only gives me errors like
Module '"deno:///missing_dependency....
3
Solved
Since Deno has been released stable build just a few days ago, Is there a possible way to use firebase-admin with Deno?
Pneumoconiosis asked 17/5, 2020 at 14:30
2
I've seen: How can I return html or json with deno? but I needed an answer for Oak - Posting below.
Stank asked 22/8, 2020 at 17:24
5
Solved
I want to run any arbitrary bash command from Deno, like I would with a child_process in Node. Is that possible in Deno?
Baluchistan asked 1/6, 2020 at 23:53
2
Solved
Suppose I have 2 script, father.ts and child.ts, how do I spawn child.ts from father.ts and periodically send message from father.ts to child.ts ?
Didier asked 29/5, 2020 at 12:6
1
Solved
I wanted to some prefixes for my imports like you can see in the code below:
"paths": {
"~/*": ["../../libs/*"],
"@/*": ["./*"]
}
however I alw...
Baiss asked 10/2, 2022 at 20:7
4
I'm looking for a ajv-like json schema validator for deno. Wondering is there any alternative?
Abiosis asked 21/5, 2020 at 5:4
3
Solved
I want to verify a signature from a Google JWT which uses RS256 as signature algorithm as of right now (Certs from Google: https://www.googleapis.com/oauth2/v3/certs), and the only libary which i c...
Armipotent asked 6/6, 2020 at 6:42
3
Solved
I have a simple file that imports a json:
main.ts
import json from './file.json'
However, deno throws the following error when importing a json file:
$ deno run main.ts
Compile file:///home/pa...
© 2022 - 2024 — McMap. All rights reserved.