med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

339
active users

#bunjs

0 posts0 participants0 posts today
Replied in thread

@markigra

#NodeJS doesn't have XMLHttpRequest, so that error shouldn't be related to modules or not. Using fetch is preferred common way to perform a HTTP request.

nodejs.org/api/globals.html#fe

If you like TS, I'd suggest looking at #Deno or #BunJS as they both directly can run TS without a transpiler step. Further, both have extra runtime support for doing common operations often more succinctly than the equivalent NodeJS option.

Examples:
docs.deno.com/runtime/referenc

nodejs.orgGlobal objects | Node.js v22.9.0 Documentation

🦾 Compile and run C in JavaScript
— Jarred Sumner

「 From compression to cryptography to networking to the web browser you're reading this on, the world runs on C. If it's not written in C, it speaks the C ABI (C++, Rust, Zig, etc) and is available as a C library. C and the C ABI are the past, present, and future of systems programming.

That's why in Bun v1.1.28, we introduced experimental support for compiling and running native C from JavaScript 」

bun.sh/blog/compile-and-run-c-

Bun · Compile and run C in JavaScriptBun now supports compiling and running C from JavaScript to make using systems libraries easier.