Sync uuid from string
How can I generate a UUID from a string synchronously?
In the standard library I only found this async module https://deno.land/std@0.160.0/uuid/v5.ts?s=generate...
VS Code, Hello World -- F5 shows nothing in console?
I have a simple hello world program:
```ts
let message: string = 'Hello World';
console.log(message);...
How to transform a Readable Stream to a file.
I have a ReadableStream from a post request and i cant find a way to transform the body(ReadableStream) to a file. I tried to pipe the ReadableStream into a file like this
const file = await Deno.open('./test.png', {create: true,write: true,})
myPostRequest.body.pipeTo(file.writable);
file.close();...
Silence error logs on Oak server
I'm trying to silence specific errors on an Oak server on Deploy.
A Github issue said to add an 'error' event listener to the app.
I did the following, but the error is still logged. Am I missing something?
```ts...
where does `document` come from
the default ultra gives me a
client.tsx like this
```
import hydrate from "ultra/hydrate.js";
import App from "./src/app.tsx";...How to create a crypto key to use with JWT from a Github pem file
Hi, I'm running into some difficulties to create a CryptoKey from a pem file.
The pem key is created from this: https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-a-github-app
The key format seems to be "ASN1", the error I'm getting:
What I'm trying to execute: ```crypto.subtle.importKey(
'pkcs8',...
unexpected ASN.1 DER tag: expected SEQUENCE, got INTEGER at DER byte 7 DataError: unexpected ASN.1 DER tag: expected SEQUENCE, got INTEGER at DER byte 7
unexpected ASN.1 DER tag: expected SEQUENCE, got INTEGER at DER byte 7 DataError: unexpected ASN.1 DER tag: expected SEQUENCE, got INTEGER at DER byte 7
Reddit fetch Vs. My noob brain part. I
Hello!
So I want to fetch Reddit posts.
I use this library. I have a few questions.
https://github.com/Compositr/redditposts/tree/main/src/typings
1. What's the simplest way to return posts with a given flairtext? ...
How do I detect mouse clicks and key presses with Deno.stdin?
I don't even really have any base code, so I was just wondering as to how do I do the problem specified in the title.
How do I tell deno check to ignore this?
```
deno check cli/color-test.ts config.tsCheck file:///Users/dan/xall/aStuff/cli/color-test.ts...
how do I find a type to import?
I created a new ultra project with
...
deno run -A -r https://deno.land/x/ultra/create.ts
deno run -A -r https://deno.land/x/ultra/create.ts
ML with FFI
Suppose you wish to do some machine learning stuff with Deno, would it be optimal to use FFI with C over Rust?
Is there a way to determine what modules have been dynamically imported at runtime?
The builtin tools to compile/bundle/vendor don't account for dynamic imports (understandably), but is there a way at runtime that we could see what has been imported dynamically. This information could then be used to aid other tools, for example to generate a module that statically imports all of those dynamic modules.
weird interface
how can a class implement this interface
```ts
interface I {
(): void
type: string...
npm specifier import types
so when I do something like
```ts
import * as rx from 'npm:rxjs'
console.log(rx)...
Re-loading a file in the repl
Is there anyway to do this? IE modify a file I'm working on, and reload it in the repl, without exiting and importing again.
(I am aware this exact same issue exists in node and is likely a cultural issue, but other repls can do it and I miss it)...
NPM compatibility
notion.databases.query works under nodejs but fails for me under Deno.
it lints and checks ok and doesn't complain when I start it up
```...How to import Definitely Typed modules into Deno project?
I'm trying to include a definitely typed module into the deno project, so that the types are available globally.
In this case, I'm trying to include @types/three and I've tried various ideas including:
```javascript...