© Fernando Doglio 2020
F. DoglioIntroducing Denohttps://doi.org/10.1007/978-1-4842-6197-2_3

3. Living a Secure Life

Fernando Doglio1 
(1)
El Molar, Madrid, Spain
 

It’s time now to talk about one of the new features incorporated by Deno, something that Node.js never tried to tackle and that it would’ve prevented some of the major issues npm has had: security.

Even though they haven’t been that many, we’ve seen a few security issues creep up over the years with npm, and most of them related to the fact that any code executed with the Node runtime automatically has the same security privileges as the user executing the script.

In this chapter, we’ll see how Deno attempts to solve this problem by forcing users to specify which permissions to add.

Enforcing ...

Get Introducing Deno: A First Look at the Newest JavaScript Runtime now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.