Libraries#
JavaScript’s built-in standard library is modest; the npm ecosystem fills in the rest.
Built-in Globals#
Array,Map,Set,WeakMap,WeakSetPromise,async/awaitJSON.parse/JSON.stringifyDate,Math,Intl(i18n: number, date, list formatting)RegExp, regular expressionsURL,URLSearchParamsfetch(in browsers, Deno, Bun, and Node 18+)console,setTimeout,setInterval,queueMicrotask
Node.js Standard Modules#
node:fs/node:fs/promises, file systemnode:path, path manipulationnode:os, platform infonode:http/node:https, HTTP server and clientnode:crypto, hashes, ciphers, randomnode:stream, readable/writable streamsnode:child_process, spawn external programsnode:worker_threads, real parallelismnode:test(Node 20+) , built-in test runner
npm Tooling#
$ npm init -y
$ npm install lodash
$ npm install -D vitest
$ npm test
$ npm run build