Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 10, 2020 05:45 pm GMT

Deno is coming

The creator of Node.js from some time has been working in a new project called Deno, the first stable version of this project should be published in 3 days on May 13.

The project is defined as

Deno is a JavaScript/TypeScript runtime with secure defaults and a great developer experience.

From the official repo we can summarize some of the main features:

  1. Supports TypeScript out of the box.
  2. Has built-in utilities.: It include a dependency inspector(deno info), code formatter(deno fmt), test runner(deno test), bundler(deno bundle), documentation generator(deno doc), debugger
  3. Ships a single executable.
  4. Scripts can be bundled into a single javascript file.
  5. Secure by default: This mean that unlike Node when you we run our applications they by default don't have access to the file system, network or enviroment, for that we need enable them using some flags as command line options to allow access for example deno --allow-read=/etc

Some difference with Node are:

  1. Deno doesn't use npm, it uses modules referenced as URLs or file paths
  2. Deno doesn't use package.json in its module resolution algorithm.
  3. All async actions in Deno return a promise. Thus Deno provides different APIs than Node.
  4. Explicit permissions.
  5. Deno always dies on uncaught errors.
  6. Uses ES Modules and doesn't support require().

This and more information can be found on the official repo I expose it here just in order to show a quick resume. So now that we know main features, and differences what are your thoughts regarding it.

Will you give a try it in upcoming projects ?
Do you think it will cause a huge change in the Node community
In your opinion what is the best feature
What your dislike most about it

Above I share some of the main question that I hear when I talk about it with some fellows at work. I'll be glad to read your opinions in the comments.

Thanks in advance


Original Link: https://dev.to/omenlog/deno-is-coming-18fg

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To