Skip to main content
Module

std

Deno standard library
Go to Latest
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.

cli

Tools for creating interactive command line tools.

collections

Pure functions for common tasks around collection types like arrays and objects. Heavily inspired by [Kotlin's kotlin.collections]https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/ package.

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.

data_structures
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
expect
flags
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.

ini

parse and stringify for handling INI encoded data, such as the Desktop Entry specification. Values are parsed as strings by default to preserve data parity from the original. Customization is possible in the form of reviver/replacer functions like those in JSON.parse and JSON.stringify. Nested sections, repeated key names within a section, and key/value arrays are not supported, but will be preserved when using IniMap. Multi-line values are not supported and will throw a syntax error. White space padding and lines starting with '#', ';', or '//' will be treated as comments.

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
net

Network utilities.

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
text
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.

ulid

Utilities for generating and working with [Universally Unique Lexicographically Sortable Identifiers (ULIDs)]https://github.com/ulid/spec.

url

Utilities for working with URL paths.

uuid

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

webgpu
yaml

parse and stringify for handling YAML encoded data.

types.d.ts
version.ts