Deno

D

Deno

Chat about Deno, a modern runtime for JavaScript and TypeScript.

Join

How to get complete Deno RAM usage?

Do we use Deno.memoryUsage().rss or should it be rss+heapUsed+external?

mongodb calls on DB's rather than collections

When I do a find on a mongoclient rather than a collection ``` clnt: MongoClient, ...

can i bypass strict mode?

When I try use Deno Run , it complains error: Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them const answer = o[s]; ...

piping for async sub process

In Deno.process, is there a way to set its STDOUT to something I can read line by line while that primary process is still running?

Deno NPM VSCode Intellisense

Is there a work around for this at the moment? I want to try out Deno's NPM support but I lose Intellisense when importing with npm:. I tried using an import map but that didn't work either. If there's a code editor or an IDE that currently supports this feature I would love to know.

Need help making fresh, rutt and preact base path aware

I'm currently trying to make fresh base path aware. I already patched rutt to work with base paths. It currently works pretty okay. Now I need help with preact as I have no experience with preact. Is there a way to tell preact to add a base path to e.g. all relative links? E.g.: <img src="/logo.svg" ... from the jsx file should be 'compiled' to <img src="/my_base_path/logo.svg" .... Or do we need to do this ourselves by adding a ${BASE_PATH} before all links? A mono-repo for this mess: https://github.com/wille-io/deno-fresh-rutt-baseurl...

How do I render react?

I'm using the configuration as shown in the Deno manual with preact, but how would I server-side render it?

How do I wait for the long running shell script to finish?

When I do this, await returns immediately. ``` const D = await Deno.run({cmd: ["sh", "long-running-script"]}); console.log(D)...

Resolving 'dynamically imported module evaluation pending, but no pending ops'

I've been getting this error quite a lot, but I haven't found a single way to know which unresolved promises cause it.
error: Dynamically imported module evaluation is still pending but there are no pending ops. This situation is often caused by unresolved promises.
Pending dynamic modules:
- file:///home/user/Desktop/js/denolasvegas/commands/main/CATEGORY.ts
error: Dynamically imported module evaluation is still pending but there are no pending ops. This situation is often caused by unresolved promises.
Pending dynamic modules:
- file:///home/user/Desktop/js/denolasvegas/commands/main/CATEGORY.ts
...

http serve and serveTls using async iterator cannot serve multiple domains

```javascript async f_serveTls() { var o_self = this // check if ssl cert exists await o_self.f_check_if_ssl_exists();...

is there a way to make deno check produce json files?

deno lint has a --json flag. is there a way to json output for deno check...

How to test if a file was created?

I'm making a deno library that creates some folders and files, how can i check if it generates then correctly?

Function Location

How do I get the source location of a function? The debugger knows where it is, but I don't know how to call FunctionLocation which is listed in double square brackets...

Can I disable type checking for specific files or folders?

I've got a few git submodules that I don't want to type check, as those repositories are not controlled by me. Is there a way for me to skip type checking on those submodules while still checking my own code?

Deno bundle duplicating variables

Using Deno 1.26.2 I am trying to bundle https://github.com/Savory/Danet-Starter using deno bundle run.ts standalone-starter.js However, the generated standalone-starter.js contains duplicated variable declaration, resulting in error: Uncaught SyntaxError: Identifier 'mod' has already been declared while trying to use deno run standalone-starter.js....

Deno BDD Testing in Visual Code Studio

I just install Visual Code Studio and loaded the Deno support for it. In my testing I have been using describe and it rather than Deno.test. I get the lense to run tests with with Deno.test is there any way to get it for describe and it...

assertThrowsAsync

does assertThrowsAsync still exist?...