Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
just small circles 🕊 boosted
Thomas Steiner :chrome:
@tomayac@toot.cafe  ·  activity timestamp 2 weeks ago

It's all still experimental and not super tightly sandbox secure yet, but #WASI support in Node.js is very much a thing: https://nodejs.org/api/wasi.html. #TIL 🤯 #Wasm #WebAssembly

WebAssembly System Interface (WASI) | Node.js v25.0.0 Documentation

  • Copy link
  • Flag this post
  • Block
Thomas Steiner :chrome:
@tomayac@toot.cafe  ·  activity timestamp 2 weeks ago

It's all still experimental and not super tightly sandbox secure yet, but #WASI support in Node.js is very much a thing: https://nodejs.org/api/wasi.html. #TIL 🤯 #Wasm #WebAssembly

WebAssembly System Interface (WASI) | Node.js v25.0.0 Documentation

  • Copy link
  • Flag this post
  • Block
Thomas Steiner :chrome:
@tomayac@toot.cafe  ·  activity timestamp 2 weeks ago

I didn't realize you could mix `import` and `require()` in Node.js now, I always thought it was either ESM or not, but you can mix: https://nodesource.com/blog/nodejs-22-features.

```js
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const pkg = require('./package.json');
```

I likewise had no idea #WASI (that is, #WebAssembly System Interface) was a thing in Node.js. Need to investigate more…

The NodeSource Blog - Node.js Tutorials, Guides, and Updates

Node.js 22 Features You Should Be Using

If your application isn't running on the new LTS, here are the production-ready features you're missing out on, and why you should prioritize the upgrade.
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login