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
-1
votes
2 answers

Give me some hint on how to install liquid.js library for deno

I installed liquid.js for Nodejs following the official instruction as: Install to Nodejs But the instruction page does not mention on deno at all. Please help me to install the library in deno. Or at least I want to know how to copy the library…
skatori
  • 547
  • 6
  • 20
-1
votes
1 answer

How to fix Typescript error upon running deno index.ts

So I started to learn Deno. Once Deno installed (I'm using Curl curl -fsSL https://deno.land/x/install/install.sh | sh for my WSL), I want to run the server. Once run deno run index.ts, I got these typescript error. $ deno run index.ts Compile…
Arif Mustaffa
  • 143
  • 1
  • 2
  • 7
-1
votes
2 answers

Changes in denjucks templates not reflected on refresh unless server is restarted

I am using 'deno' and 'oak'. for auto refreshing I am using 'denon' which is similar to 'nodemon' in nodejs. as a template engine, third party module, I am using - 'denjucks'. Whenever, I do any change in template code and save, server is not…
-1
votes
1 answer

Node and Deno servers accessing the same MySQL database

I want to test Node and Deno and try to redirect users via proxy to one MySQL DB. How will it impact the database? Can some timestamp conflicts via CRUD operations arise or does MySQL have some mechanism to cope with connections from multiple…
Gergejs
  • 33
  • 5
-1
votes
1 answer

Deno - Importing TypeScript into a JS file

In Deno, to import a TypeScript module, does your own code file have to be TypeScript? Or does Deno auto convert TypeScript to javascript before the module gets imported? I want all my code files to be EcmaScript modules (js or mjs, but not…
Lonnie Best
  • 9,936
  • 10
  • 57
  • 97
-1
votes
1 answer

What will happen when deno will come

What will happen with react or webpack, which use node js, when deno comes. Will Node.js and Express die?
RaseL Mahmud
  • 249
  • 2
  • 5
-1
votes
1 answer

Deno: Importing a JavaScript module into TypeScript gives error

I have a TypeScript script that imports the Xlsx.js module as follows: import {XLSX} from 'https://github.com/exceljs/exceljs/blob/master/lib/xlsx/xlsx'; This give the following error message: Download…
Amani
  • 16,245
  • 29
  • 103
  • 153
-1
votes
1 answer

Is Deno Currently usable as is? Version (0.2.1)

I had a project spinned up in NodeJs, but I found out that I had to write a lot of boilerplate to get some functionality. The system I was designing was supposed to run user code at times, and I had to look for various workarounds for functionailty…
Nelson Owalo
  • 2,324
  • 18
  • 37
-2
votes
1 answer

How to define JSX.IntrinsicElements using nano_jsx with Deno?

How do I get rid of this error? JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.deno-ts(7026) Here's the problematic code: const problematicCode =
Hello world
This is example code in this Deno…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
-2
votes
1 answer

How to load a binary file into Blob?

The Larger Context: I am attaching a file to a Confluence page. This is done by POSTing a multi-part request, containing the file, to the Confluence RESTful API. I'm looking for a simple means of loading a complete binary file (a PNG) into a Blob,…
Martin Cowie
  • 2,788
  • 7
  • 38
  • 74
-2
votes
1 answer

Removing items from front of Array without using shift()

We know that Array.prototype.shift()/Array.prototype.unshift() are CPU intensive because they update all indices in an array. I want create a basic queue, and update an index. class MyQueue { vals = [1,2,3]; indexOfFirst = 0; shift(){ const…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
-2
votes
1 answer

How to use Firebase Authentication in Deno Fresh?

I am following the official firebase docs to do authentication in fresh. https://firebase.google.com/docs/auth But it's just not working. Is there some docs, article, or blog that can guide me to implement this.
-2
votes
1 answer

How to use streams in Deno?

I am very confused on Deno documentation. It has ReadableStream and WritableStream API, but it doesn’t have a documentation to use it. I want to read from ReadableStream and write to WritableStream, how can I do that in Deno?
thebluetropics
  • 82
  • 2
  • 10
-2
votes
1 answer

What do I do about my library on deno.land?

I tried to host my library for deno users on deno.land. Afterwards, I found out about Deno's fight with Typescript/Node/ES Council about filenames. I went to the Deno discord, and they said that I couldn't actually publish my Typescript code in a…
John Haugeland
  • 9,230
  • 3
  • 37
  • 40
-2
votes
2 answers

How do I get an array of objects from Deno's sqlite library?

I'm trying to get user.foo and user.bar instead of an array of values from sqlite: https://deno.land/x/sqlite let user: any = await db.query('SELECT id, email, hashed_password FROM users WHERE email = ?', [body.email]); if (!user ||…
chovy
  • 72,281
  • 52
  • 227
  • 295
1 2 3
61
62