D
Deno

help

Trying to pass parameters to runtime from rust

Aandres-movinglake8/9/2023
Hi, I'm launching a deno runtime from my project's code. I'm trying to pass some dynamic json variables to the runtime however I haven't been able to this. What's the best way to launch a runtime with a context?
ABAltair 680b8/9/2023
Importing JSON - Deno by Example
JSON files can be imported in JS and TS files using the import keyword. This makes including static data in a library much easier. -- Deno by example is a collection of annotated examples for how to use Deno, and the various features it provides.
Aandres-movinglake8/21/2023
Ok, so the best way to communicate with a script to be launched is to create a Json file and then have the JavaScript script load it from FS? I could use memfiles to avoid the disk lookup but it does add some complexity to the system @ndh3193 hey uhm do you have any help here? I've been trying to use extensions to pass some state to the javascript runtime but it's super complicated in Rust
ABAltair 680b8/21/2023
I don't have any experience with that. Sorry!

Looking for more? Join the community!

Recommended Posts
console.log in a worker - capture or hide output?Running under `deno repl` with no permissions, this prints 'yee'. In a browser's dev tools it would Deno debugging configuration is missing?```json "deno.enable": true, "deno.unstable": true, "deno.enablePaths": ["./api"], "deno.docIs there a way to show permissions used on start up during runtime?For example: If I was to run an App with `permissions: --allow-net=${hostname}:${port}` is there a wrestrict path applied for import mapshi, is it possible to restrict importmap application to only specific path? the rationale is: - vscoBest way to pass backend data to SSR rendered view?Looking for the "proper" way to pass data to an SSR rendered view. My first idea is setting custom pImport mapHi I have this in deno.json: ``` "imports": { "./app.controller": "./app.controller.ts", ``` butWhat should I specify to pass a "char *" in Deno.dlopen?For example, this is how you would use it in Python: ```python import ctypes lib = ctypes.cdll.LoadOverride NPM package dependencyRelating to my question yesterday (https://canary.discord.com/channels/684898665143206084/1137532072VS Code's debugger terminates before finishedI notice that occasionally the debugger terminates at the middle of the running, or at least doesn'tI need some guidance regarding interprocess communication with DenoWhat are good cross-platform (Windows, Linux) options for interprocess communication / data sharing What is the Deno class?What is Deno in Deno.cwd() ? Can someone link me to documentation? Why doesn't the Deno class need tGetIP + Ctx from middleware to a route not passedHi, I have test to retrieve IP visitor Code taken from Discord is always returning "localhost" (whe