Libraries#

JavaScript’s built-in standard library is modest; the npm ecosystem fills in the rest.

Built-in Globals#

  • Array, Map, Set, WeakMap, WeakSet

  • Promise, async / await

  • JSON.parse / JSON.stringify

  • Date, Math, Intl (i18n: number, date, list formatting)

  • RegExp, regular expressions

  • URL, URLSearchParams

  • fetch (in browsers, Deno, Bun, and Node 18+)

  • console, setTimeout, setInterval, queueMicrotask

Node.js Standard Modules#

  • node:fs / node:fs/promises, file system

  • node:path , path manipulation

  • node:os , platform info

  • node:http / node:https , HTTP server and client

  • node:crypto , hashes, ciphers, random

  • node:stream , readable/writable streams

  • node:child_process , spawn external programs

  • node:worker_threads , real parallelism

  • node:test (Node 20+) , built-in test runner

npm Tooling#

$ npm init -y
$ npm install lodash
$ npm install -D vitest
$ npm test
$ npm run build

Useful Packages#