Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
Index
archive

Tar is a utility for collecting multiple files (or any arbitrary data) into one archive file, while untar is the inverse utility to extract the files from an archive. Files are not compressed, only collected into the archive.

assert

A library of assertion functions. If the assertion is false an AssertionError will be thrown which will result in pretty-printed diff of failing assertion.

async

Provide help with asynchronous tasks like delays, debouncing, deferring, or pooling.

bytes

Provides helper functions to manipulate Uint8Array byte slices that are not included on the Uint8Array prototype.

collections

Functions for specific common tasks around collection types like Array and Record. This module is heavily inspired by kotlins stdlib.

console

Functions for console-related tasks such as TTY text layout

crypto

Extensions to the Web Crypto supporting additional encryption APIs, but also delegating to the built-in APIs when possible.

csv

Reads and writes comma-separated values (CSV) files.

datetime

Utilities for dealing with Date objects.

dotenv

Load environment variables from a .env file. Loaded variables are accessible in a configuration object returned by the load() function, as well as optionally exporting them to the process environment using the export option.

encoding
flags

Command line arguments parser based on minimist.

fmt
front_matter

Extracts front matter from strings.

fs

Helpers for working with the filesystem.

html

Functions for HTML tasks such as escaping or unescaping HTML entities

http

Provides user-friendly serve on top of Deno's native HTTP server and other utilities for creating HTTP servers and clients.

io

Utilities for working with Deno's readers, writers, and web streams.

json

Utilities for parsing streaming JSON data.

jsonc

parse function for parsing JSONC (JSON with Comments) strings.

log

Logging library with the support for terminal and file outputs. Also provides interfaces for building custom loggers.

media_types

Utility functions for media types (MIME types).

msgpack
path

Utilities for working with OS-specific file paths.

permissions

Helpers for interacting with Deno's permissions system.

regexp

Functions for tasks related to regular expression (regexps), such as escaping text for interpolation into a regexp

semver

The semantic version parser.

signal

Higher level API for dealing with OS signals.

streams

Utilities for working with the Streams API.

testing
toml

parse and stringify for handling TOML encoded data. Be sure to read the supported types as not every spec is supported at the moment and the handling in TypeScript side is a bit different.

url

Utilities for working with URL paths.

uuid

Generators and validators for UUIDs for versions v1, v3, v4 and v5.

wasi
yaml

parse and stringify for handling YAML encoded data.

types.d.ts
version.ts