Deny env permissions silently (without throwing)
Hi. An
npm module I'm using tries to read, or rather check for an existence of an env variable. The problem is it throws due to not having permission to access env.
I'd rather not give any env permissions to any of my scripts.
I think the offending npm module can do with having env variables undefined, it's just that it throws just trying to see if the variables are there. Can I somehow make Deno silently return empty/null without throwing an error? ...HTTPS Oak Deno
I want to run Deno Oak over Https in local. I use OpenSsl to create cert and key. But no works.

WebSocket proxy Deno.createHttpClient
Is it possible to use proxy for web socket connections in Deno?
How to feed a ReadableStream / async Generator into a Response object?
``` Bun.serve({
async fetch(req) {
return new Response(
async function* stream() {
// ~~~^?...

Is there any way to know currently running has been deno compiled?
Can something like Deno.compiled be used to determine this?
Testing API server
I'm trying to setup an API server using deno and am trying to figure out what the canonical way of testing it might be.
I'd like to run the server and then run tests against it - I'm assuming you do something like Deno.Command to start the server? I'd like a script I can run like
test.sh that will spawn the server, run tests against it, and then watch for any changes between the two ... Any examples of this in the codebase / online?...Debugging high (string) heap usage
I was observing relatively high memory usage in my deno applications (web-applications). I haven't attempted any debugging on my production application, however upon connecting to a debugger locally on my development environment I am seeing high memory size for
(string) and in there it appears a lot of it is coming from std library or other dependency modules. I am attaching the images here for reference, if required I can share the heapsnapshot file through a downloading service since it is around 250MB.
I am trying to understand how or if I can reduce the memory usage of this (string) as majority of the memory usage is happening here.
Any help or reference resource which I can study to debug and solve this issue would be much appreciated, since I am not well-versed with profiling and memory usage I would be happy to learn more if I am missing something here....
VS Code integration is broken
Hi all. Just opened my Deno project in VS Code and got:
`Cannot set workspace settings: invalid type: null, expected a sequence
[Error - 3:10:18 PM] Server initialization failed.
Message: Internal error...
follow up action after respond to the request
Currently, i have this for my http interaction discord bot
```ts
// ping.js
execute(api: API, interaction: APIPingInteraction): Response {
something(api, interaction);...
How to apply @deno-types on a dynamic import
// @deno-types="npm:@types/react-dom@18/client"
const { hydrateRoot: hydrate } = (await import("react-dom/client")).default;
// @deno-types="npm:@types/react-dom@18/client"
const { hydrateRoot: hydrate } = (await import("react-dom/client")).default;
Cache fresh deps on docker problem
I have a brand new fresh project with only the default deps and when i try to put my app in a docker container it throws the error in the image
Dockerfile
```
FROM denoland/deno:1.41.0...

Deno fmt with verbatimModuleSyntax?
Currently Deno fmt sorts verbatim imports alphabetically, this is conflicting with the Organize Imports in VS Code where it sorts
import { type ... } entries individually at the end.
Example:
```ts
// VS Code...How to use private remote modules hosted on GitHub on Deno Deploy?
According to Private Modules and Repositories, I can access a private GitHub repo using the
DENO_AUTH_TOKENS environment variable. How do I achieve this on Deno Deploy? I've tried setting DENO_AUTH_TOKEN on my project's settings page but it suggests that DENO_ is a reserved prefix.
Encryption using Deno KV and OAuth?
I'm creating a note-taking app using most of Deno's tools. I was thinking about encrypting user notes for additional privacy. The problem I have is that I don't know how to generate and manage the encryption keys without somehow storing them in the server. If anyone has any pointers on how to achieve this I would love to hear it, thank you.
Deno is not seeing a project
It seems deno is not seeing a project i am using.
Project link: https://github.com/Swifter1243/ReMapper
Error i am recieving in the picture:
I can provide more if needed...

`arch` and `platform` are empty strings in `node:process`
👋 hello! I'm trying to use a node project that uses
arch and platform inside node:process, which works great in Node, but they appear to be empty strings in Deno.
```js
import { arch, platform } from "node:process";
console.log(arch, platform);...NPM imports fail on JSON require
When importing modules via ...
npm: protocol, the embedded esbuild will throw the following error if the module tries to require("package.json") .
Error: Build failed with 1 error:
../../../../../Library/Caches/deno/deno_esbuild/{module}@{version}/node_modules/{module}/package.json:2:8: ERROR: Expected ";" but found ":"
Error: Build failed with 1 error:
../../../../../Library/Caches/deno/deno_esbuild/{module}@{version}/node_modules/{module}/package.json:2:8: ERROR: Expected ";" but found ":"
use-case: web component development in deno
My use-case is quite simple, really. But I have a hard time finding the tooling to work with it.
- I have plain HTML, say "index.html", some CSS, say "app.css", and some typescript.
- I want to include this typescript in the HTML.
- I want a webserver that reloads the index.html page whenever any of the files changes...
