The Deno Standard Library
Go to file
2023-11-06 14:33:29 +11:00
_tools chore(_tools): update status towards stabilization (#3636) 2023-09-13 22:16:05 +09:00
.devcontainer chore: add development container configuration (#1938) 2022-02-21 14:23:43 +11:00
.github quieter 2023-11-02 16:50:42 +11:00
archive fix(archive/untar.ts): cannot access symlinks in archives (#3686) 2023-10-06 15:33:36 +09:00
assert fix(assert): fix swapping of multiline str diff (#3685) 2023-10-04 10:43:58 +09:00
async chore(async): remove _exponentialBackoffWithJitter from public file (#3720) 2023-10-25 14:06:35 +09:00
bytes BREAKING: remove deprecated BytesList() (#3740) 2023-10-29 13:09:19 +09:00
collections chore: cleanup collections/CONTRIBUTING.md (#3741) 2023-10-31 14:38:29 +11:00
console refactor(console): format test names (#3756) 2023-11-02 10:10:43 +11:00
crypto docs(crypto): remove use of deprecated toHashString() (#3721) 2023-10-26 08:19:44 +09:00
csv chore: remove readableStreamFromReader() & StringReader() in CSV stream test (#3725) 2023-10-26 18:44:34 +09:00
datetime fix(datetime): fix dayOfYear when the timezone has DST (#3668) 2023-09-26 14:04:05 +09:00
dotenv BREAKING(dotenv): remove deprecated restrictEnvAccessTo option (#3705) 2023-10-22 10:54:32 +09:00
encoding refactor: remove top-level arrow sytnax use (#3687) 2023-10-11 16:19:48 +09:00
flags refactor: cleanup usage of double equals (#3566) 2023-08-25 18:04:43 +09:00
fmt chore: cleanup old std/fmt files (#3742) 2023-10-29 13:18:48 +09:00
front_matter BREAKING(front_matter): deprecate language-specific test functions (#3654) 2023-10-11 16:21:06 +09:00
fs fix(fs): expandGlob/expandGlobSync don't require full --allow-read perms on granted read permissions (#3692) 2023-10-24 16:51:33 +09:00
html BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
http fix: add [Symbol.dispose]() to MockListener() (#3760) 2023-11-02 00:29:36 +01:00
io chore: remove deprecated BytesList() in readDelim() (#3726) 2023-10-29 06:18:31 +09:00
json test(json): fix expectation of ConcatenatedJsonParseStream test (#3598) 2023-09-01 11:26:59 +09:00
jsonc BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
log fix(log): rotating file handler sync setup and destroy (#3543) 2023-08-29 16:48:52 +09:00
media_types chore: replace deprecated typeByExtension() in content_type.ts (#3727) 2023-10-29 06:32:09 +09:00
msgpack chore(msgpack): get rid of testing/asserts usage (#3597) 2023-09-01 11:31:43 +09:00
path chore: address asher's comment 2023-11-02 16:51:51 +11:00
permissions BREAKING(permissions): deprecate permissions module (#3567) 2023-08-25 17:20:02 +09:00
regexp BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
semver feat(semver): canParse (#3709) 2023-10-24 13:39:55 +09:00
signal refactor(_util): remove _util/os (#3564) 2023-08-25 18:07:43 +09:00
streams refactor: use Array.fromAsync() 2023-11-06 14:33:29 +11:00
testing refactor: move unstable std/collections files (#3700) 2023-10-18 10:24:46 +09:00
text feat: add std/text with word-similarity helpers (#3488) 2023-11-05 21:49:00 +09:00
toml fix(toml/parse): fix edge cases (#3509) 2023-07-30 18:23:34 +09:00
ulid feat(ulid): port /x/ulid module (#3582) 2023-09-12 20:31:03 +09:00
url BREAKING(path): split path into per-os modules, deprecate legacy os-specific exports (#3649) 2023-09-28 19:54:53 +09:00
uuid BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
wasi BREAKING: deprecate std/wasi (#3732) 2023-10-31 14:37:22 +11:00
yaml refactor: remove top-level arrow sytnax use (#3687) 2023-10-11 16:19:48 +09:00
.editorconfig chore(node): add asn1.js (#1971) 2022-02-28 20:55:56 +09:00
.gitattributes Remove std/node, it was merged into Deno itself (#3206) 2023-02-22 10:28:55 -05:00
.gitignore chore: add cov:* tasks (#3743) 2023-10-29 13:23:03 +09:00
.gitmodules chore: Setup CI and tests 2021-02-01 12:20:35 +01:00
browser-compat.tsconfig.json fix: improve type safety for browser-compatible modules (#995) 2021-07-06 11:15:37 +09:00
CONTRIBUTING.md docs: separate contributing guidelines (#3715) 2023-10-25 13:21:05 +09:00
deno.json add deno fmt --check 2023-11-02 16:50:42 +11:00
LICENSE chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
README.md docs: add "Stability" README section (#3745) 2023-10-31 17:17:28 +11:00
Releases.md 0.205.0 (#3761) 2023-11-02 00:34:17 +01:00
types.d.ts chore(tools): improved web-compatibility checks (#3263) 2023-03-18 21:36:00 +09:00
version.ts 0.205.0 (#3761) 2023-11-02 00:34:17 +01:00

Deno Standard Library

codecov ci

High-quality APIs for Deno and the web. Use fearlessly.

Get Started

import { copy } from "https://deno.land/std@$STD_VERSION/fs/copy.ts";

await copy("./foo", "./bar");

See here for recommended usage patterns.

Documentation

Check out the documentation here.

  1. Include the version of the library in the import specifier.

    Good:

    import { copy } from "https://deno.land/std@0.204.0/fs/copy.ts";
    
  2. Only import modules that you require.

    Bad (when using only one function):

    import * as fs from "https://deno.land/std@$STD_VERSION/fs/mod.ts";
    

    Good (when using only one function):

    import { copy } from "https://deno.land/std@$STD_VERSION/fs/copy.ts";
    

    Good (when using multiple functions):

    import * as fs from "https://deno.land/std@$STD_VERSION/fs/mod.ts";
    
  3. Do not import symbols with an underscore in the name.

    Bad:

    import { _format } from "https://deno.land/std@$STD_VERSION/path/_common/format.ts";
    
  4. Do not import modules with an underscore in the path.

    Bad:

    import { filterInPlace } from "https://deno.land/std@$STD_VERSION/collections/_utils.ts";
    
  5. Do not import test modules or test data.

    Bad:

    import { test } from "https://deno.land/std@$STD_VERSION/front_matter/test.ts";
    

Stability

Sub-module Status
archive Unstable
assert Stable
async Stable
bytes Stable
collections Stable
console Unstable
csv Stable
datetime Unstable
dotenv Unstable
encoding Unstable
flags Unstable
fmt Stable
front_matter Unstable
fs Stable
html Unstable
http Unstable
io Deprecated
json Stable
jsonc Stable
log Unstable
media_types Stable
msgpack Unstable
path Unstable
permissions Deprecated
regexp Unstable
semver Unstable
signal Deprecated
streams Unstable
testing Stable
toml Stable
ulid Unstable
url Unstable
uuid Stable
wasi Deprecated
yaml Stable

For background and discussions regarding the stability of the following sub-modules, see #3489.

Contributing

Check out the contributing guidelines here.

Releases

The Standard Library is versioned independently of the Deno CLI. This will change once the Standard Library is stabilized. See here for the compatibility of different versions of the Deno Standard Library and the Deno CLI.