Hacker News new | ask | show | jobs
by stevage 724 days ago
My understanding was that Deno has compatibility issues with Node - it can't necessarily run all normal Node code. Whereas Bun definitely can.
1 comments

I don't think Bun "definitely can" run most Node code. Both Deno[1] and Bun's[2] Node compatibility are incomplete. Bun being perceived as more compatible is mostly clever marketing.

[1] https://docs.deno.com/runtime/manual/node/compatibility

[2] https://bun.sh/docs/runtime/nodejs-apis

From the beginning, Bun was designed to be a drop-in replacement for Node.js. That’s why Bun implements Node’s globals. That’s also why Bun automatically detects when CommonJS is used in the entry point and ensures CommonJS is loaded. require and many other Node.js features “just work” in Bun.
Huh, interesting.

Surprised I haven't run into any of these incompatibilities.

Sounds like I have some reading to do.