Core APIs

Specialist version-gated APIs

Specialist Node APIs may be stable, experimental, deprecated, or available only in selected releases. Check the versioned documentation and local availability before designing a program around them. The v22.16.0 runtime exposes `node:sqlite` experimentally; its DatabaseSync operations are synchronous. Newer SQLite features and virtual filesystem (VFS) integration must be checked against the exact runtime; do not assume arbitrary VFS or benchmark helpers exist as built-ins. The `node:perf_hooks` API is an available measurement primitive. `node:querystring` is Node-specific; URLSearchParams offers a web-compatible form-style query interface. Deprecated `node:punycode` and `node:domain` belong in migration notes, not new defaults; use URL/domain utilities and explicit error handling as appropriate. Single executable applications (SEA) and the permission model are version-sensitive and do not replace process isolation. This lesson checks known public interfaces, not an exhaustive feature inventory. Presence of an API does not establish stability, permission, portability or support for a different version. Do not enable extension loading for this lab. Sources: https://nodejs.org/download/release/v22.16.0/docs/api/sqlite.html; https://nodejs.org/download/release/v22.16.0/docs/api/querystring.html; https://nodejs.org/download/release/v22.16.0/docs/api/single-executable-applications.html; https://nodejs.org/download/release/v22.16.0/docs/api/permissions.html.

Formal Syntax & Structure

nodejs syntaxnodejs
new DatabaseSync(":memory:"); db.prepare(sql).get()

Working Example

Example Snippetnodejs
import {stringify} from 'node:querystring';console.log(stringify({q:'a b'}));console.log(new URLSearchParams({q:'a b'}).toString());
Node.js Reference