# 3 New Features of Deno that Most JS Devs Don't Know About

Deno is a modern, secure, and performant runtime for JavaScript and TypeScript. It is often compared to its progenitor [NodeJS](https://nodejs.org/), and its zippy younger brother [BunJS](https://bun.sh/).

Among Deno's main features are:

1. **Built-in Modules**: Deno comes with a standard library that provides several built-in modules, eliminating the need to install external packages, reducing the dependency on package managers, and streamlining the development process. Similar to NodeJS's `fs`, `path`, `process`.
    
2. **Security**: Deno prioritizes security by default, it runs scripts in a sandboxed environment, avoiding access to the file system, environment variables, and network unless explicitly granted. This means that you can run all those public apps / scripts / libs with high confidence that nothing *untoward* will happen to your machine (`format C:\` anyone?), unless you grant it [permission](https://deno.land/manual/basics/permissions#permissions-list); then it's your fault!
    
3. **TypeScript Support**: Deno [*natively*](https://deno.land/manual/advanced/typescript/overview#how-does-it-work) supports TypeScript, with no transpilation or build steps required! This enables developers to take advantage of TypeScript's type-checking and other features without adding extra complexity to their workflow. Don't want to use TypeScript? It's completely [optional](https://deno.land/manual/advanced/typescript/overview#mixing-javascript-and-typescript) too!
    

Deno was created by Ryan Dahl, who also created NodeJS. It was announced in 2018 and released in May 2020. Since its release, Deno has gained a significant following and is seen as a potential successor to NodeJS. It's being used in a variety of applications and is actively being developed with new features and improvements.

And now, for **3** NEW features you'll want to try..... (🥁🥁🥁):

1. **npm** (since v1.28): Now you can import npm packages [directly](https://deno.land/manual/node#interoperating-with-node-and-npm)! Originally, Deno had the `deno.land/x/` [public registry](https://deno.land/manual/node/cdns#what-about-denolandx) for its packages' code (i.e. hopefully code written specifically for Deno!). Now, you can also prefix your package dependency with `npm:` [specifier](https://deno.land/manual/node/npm_specifiers), and you've unlocked *thousands* of more libraries to help crash your app. Just kidding! (mostly) Some libraries may still cause compat issues, YMMV.
    
2. **lint**: Deno ships with a built-in [linter](https://deno.land/manual/tools/linter)! And it's [really fast](https://github.com/denoland/deno_lint#performance) (~10x faster than eslint).
    
3. **fmt**: Deno ships with a built-in [formatter](https://deno.land/manual/tools/formatter)! It will auto-format *.js, .jsx, .ts, .tsx, .md,* and *.json*. It comes with minimal [config options](https://deno.land/manual/tools/formatter#configuration) (ala prettier) and supports [ignoring](https://deno.land/manual/tools/formatter#ignoring-code) sections of your code with comment markers.
    
4. **compile**: (Did I say 3? I meant **4!**) Deno ships with a built-in [compiler](https://deno.land/manual/tools/compiler#compiling-executables)! That's right, go ahead and build your executable now without hunting down the latest-and-greatest lib from npm. You can compile binaries for various platforms by adding the `--target` CLI flag. Deno currently supports compiling to: Windows x64, macOS x64, macOS ARM and Linux x64.
    

Bonus: Check out the [Fresh](https://fresh.deno.dev/) UI framework.

And there you have it! 🎉 If you haven't yet tried out Deno, I **highly** recommend you do. Especially if you have any experience with NodeJS, it's a small leap with potentially HUGE rewards. I bet you'll keep saying "sweeeet" under your breath like I did. Go forth, and enjoy coding!

You can follow me on [**Twitter**](https://twitter.com/SrJSDev) and [**YouTube**](https://www.youtube.com/channel/UClu80kwRi7KVUherGeilGQQ). Let’s continue interesting conversations about Sr JS development together!
