Hacker News new | ask | show | jobs
by runarberg 1865 days ago
> use of browser APIs whenever possible

Correct me if I’m wrong, but isn’t Node.js aligning more and more with the browser APIs. For example if you `import { URL } from 'url'` you get the WHATWG standard URL object (it is also available as a global object). Node.js now has EventTarget and event listeners aligned with the DOM Event API. `crypto` is now a global object with the same API as the Web Crypto API. You have ArrayBuffer and Blob in Node.js just like in the browser.

What is it that Deno is doing differently then node here?

2 comments

fetch() is a notable web feature missing from Node.js core
add WebSockets to that list.
Like I said, is aligning more and more:

* https://github.com/nodejs/node/issues/19393

* https://github.com/nodejs/node/issues/19308

Web APIs is not something that Deno is doing and Node isn’t. It is more something that Deno has done a few of which Node hasn’t yet.

It also looks like Node.js is going to get import maps.