Deno 1.15 improves Node.js compatibility

 In Uncategorized

Deno 1.15 improves Node.js compatibility

Deno 1.15, the latest release of the JavaScript runtime positioned as a secure alternative to Node.js, features a new flag that makes it easier to run Node.js programs in Deno.

Deno 1.15 was published October 12. When the --compat flag is present, Deno will automatically set up Node global variables, such as process, and provide all built-in modules available in Node. Note that this flag currently requires –-unstable.

The version of –-compat in Deno 1.15 is just a first pass. More work will be put into improving compat mode in coming releases, moving toward Node emulation. According to Deno 1.15 release notes, std/node is a module that provides a compatibility layer for Node APIs, enabling developers to run a subset of Node programs in Deno. The release of std 0.111.0 updates the compatibility layer, adding desired modules including dns, http, and net, along with updates to the cryptocode module.

To read this article in full, please click here

Deno 1.15, the latest release of the JavaScript runtime positioned as a secure alternative to Node.js, features a new flag that makes it easier to run Node.js programs in Deno.

Deno 1.15 was published October 12. When the --compat flag is present, Deno will automatically set up Node global variables, such as process, and provide all built-in modules available in Node. Note that this flag currently requires –-unstable.

The version of –-compat in Deno 1.15 is just a first pass. More work will be put into improving compat mode in coming releases, moving toward Node emulation. According to Deno 1.15 release notes, std/node is a module that provides a compatibility layer for Node APIs, enabling developers to run a subset of Node programs in Deno. The release of std 0.111.0 updates the compatibility layer, adding desired modules including dns, http, and net, along with updates to the cryptocode module.

To read this article in full, please click here

Recent Posts
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt