Pass string to struct FFI
Quick question about Struct-Value feature, what would be the best way to pass
*const u8 (or strings) to structs?
I am kinda lost after reading the tests to get some examples running, here's what I got working so far :
```ts
const lib = Deno.dlopen("./target/debug/libtest_struct.so", {
add: {...module augmentation
Suppose
module.ts is some external module that I have no control of.
In my file test.ts I want to change the type UserEnv of the external module.
How can I do this or does Deno just not support this and you basically need to use node to do this?
...
deno blog without html sanitization
I want to be able to javascript Canvas API things in my blog - surely this is possible?
adding async data to array?
i'm probably missing something obvious but i'm trying to add data that's async to an array in a forEach loop. below is my code:
```ts
const posts = await notion.databases.query({
database_id: Deno.env.get("DATABASE_ID"),...
How add custom colors to twind config?
my config:
```ts
import { Options } from "$fresh/plugins/twind.ts"
export default {...
How deploy deno.fresh project for my VPS?
Hi I try setup fresh project:
https://mint-house.app/
http://5.187.7.221:8000/
is there a task in fresh to generate static files ?...
Killing subprocess not working
Anyone know what I'm doing wrong when trying to kill a process?
I have a process start another process like this:
```ts
runProcess = Deno.run({...
Looking to chunk the HTML stream on the homepage to reduce initial page load. Are there good docs?
I'm currently reading and transforming every markdown file in the render function and i'd like to instead yield chunks of markup so the browser can get started rendering sooner. is there a paved path for me in fresh? thanks!
Rewind streams
So I'm using web streams (byob) for a project but in some cases I need to peek ahead.
Is it possible to do this with webstreams? I want to read a static amount of bytes and then rewind by n bytes (between 0 and 4)...
Before generating coverage report, run `deno test --coverage` to ensure consistent state.
Why would this happen, if I did run
deno test --coverage before running deno coverage...?module registry alternatives then deno.land
Anyone knows some other registries besides deno.land/x .
I already know about nest.land. Looking for something which does not need a github repo....
How to use MUI in Fresh?
Is there a way to use Material UI components library in Fresh?
Here is the code I tried:
```tsx
import { Button } from "https://esm.sh/@mui/material@5.11.3";
...
error Missing transpiled source code for
When I try to create a coverage report for my project, I get an error saying one of my files is missing transpiled code? What does that mean?
You can run the coverage task here to reproduce the error: https://github.com/chrisabrams/nova...
Possible to check of a file is being run as worker?
if (import.meta.main) {
main()
}
if (import.meta.main) {
main()
}
using both nodejs & deno
I have to turn in my class assignments in nodejs.
I am happier with deno.
Is there a standard way to write code so that the same code base can be used both ways?...
How to get Deno's default compilerOptions value?
I want to add more compilerOptions.lib options like this:
```
"compilerOptions": {
"jsx": "react-jsxdev",
"jsxImportSource": "react",...
deno.run not working as expected
so when i run
mysql --defaults-extra-file=./tmpcnf_from_f_execute_query.cnf -e "DROP DATABASE test_database" i get the correct expected error message
ERROR 1008 (HY000) at line 1: Can't drop database 'test_database'; database doesn't exist
but when i try to run this with deno
```javascript
...
