...

/

Using the Standard Library

Using the Standard Library

Learn about Deno's standard library, and build an ls command that prints output of files in color.

Deno’s behavior and the standard library

Deno’s standard library is currently not considered stable by the runtime; therefore, modules are separately versioned. When we’re writing, the standard library is version 0.83.0.

As we previously mentioned, Deno is very meticulous in what it adds to the standard library. The core team wants it to provide enough behavior so people don’t need to rely on millions of external packages to do certain things, but at the same time doesn’t want to add too much of an API surface. This is a fine balance that is hard to strike.

With the assumed inspiration of Golang, most of the Deno standard library functions mimic the language created by Google. This happens because the Deno team truly ...