4 ms·
> 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 { U
by runarberg 6y 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?
- styfle 6y agofetch() is a notable web feature missing from Node.js core
- andrew_ 6y agoadd WebSockets to that list.
- runarberg 6y agoLike I said, is aligning more and more: * https://github.com/nodejs/node/issues/19393 https://github.com/nodejs/node/issues/19393 * https://github.com/nodejs/node/issues/19308 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.
- paulddraper 6y agoIt also looks like Node.js is going to get import maps.