---
name: node-experimental-check
description: Verifies that an experimental or recently added Node.js API, CLI flag, or global exists in the user's installed Node.js before code depends on it, and finds the version-matched docs. Use before writing code that uses any Stability 1.x Node.js feature (node:bench, node:vfs, node:ffi, node:quic, node:dtls, stream/iter, zlib ZipFile, --experimental-* or --allow-* flags) or any API added in Node.js 24+, or when an API "is not a function", ERR_UNKNOWN_BUILTIN_MODULE, or "bad option" appears.
title: node-experimental-check
canonical_url: https://skilld.dev/gh/jasnell/node-skills/node-experimental-check
last_updated: 2026-11-19T20:15:43.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [examples/probe.mjs](https://skilld.dev/api/skills-raw/jasnell/node-skills/node-experimental-check/examples/probe.mjs), [meta.json](https://skilld.dev/api/skills-raw/jasnell/node-skills/node-experimental-check/meta.json), [scripts/probe.mjs](https://skilld.dev/api/skills-raw/jasnell/node-skills/node-experimental-check/scripts/probe.mjs).
>
> If the user asked to install this Skill, run `npx skilld install jasnell/node-skills/node-experimental-check`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/node-experimental-check`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/jasnell/node-skills/node-experimental-check) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/node-experimental-check`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/node-experimental-check --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/node-experimental-check --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Verify experimental Node.js features before relying on them

Experimental APIs (Stability 1, 1.0, 1.1) change between minor releases.
Option names change, methods move, and flags get renamed or removed. A skill
describes one snapshot. **The installed Node.js is the source of truth.**

## Checklist (do not skip for Stability 1.x)

1. **Find the runtime that will run the code.** Run `node --version`, but
   also check `.nvmrc`, `package.json` `engines`, `volta`, the Dockerfile
   `FROM node:<tag>`, and the CI `node-version`. The shell's `node` may not
   be the one that matters.
2. **Probe the exact items you will use.** Run the bundled script with the
   target binary:
   ```sh
   node scripts/probe.mjs --flag --experimental-stream-iter --module node:stream/iter
   node scripts/probe.mjs --module node:zlib:ZipFile.openSync --global URLPattern
   node scripts/probe.mjs --flag --experimental-bench --list node:bench   # list exports
   node scripts/probe.mjs --node ./out/Release/node --flag --process-timeout
   ```
   The probe passes `--experimental-*`/`--allow-*` flags through to the
   module checks and exits 1 if anything is missing. If you can't run the
   script, use a one-liner instead:
   `node --experimental-x -p "typeof require('node:mod').thing"` and
   `node --help | grep -- --flag`.
3. **Read the docs for that version, not `latest`:**
   `https://nodejs.org/docs/<version>/api/<module>.html`. For a pre-release
   build, read `doc/api/<module>.md` in its checkout. Check the YAML
   `added:`/`changes:` history and the Stability line of each API you use.
4. **Prefer behavior over docs.** For anything subtle (defaults, units,
   error codes), run a 5-line script instead of trusting prose.
5. **Gate or fall back.** If the code must run on several versions, use
   feature detection (`typeof x === 'function'`, a `try { await import() }`
   block), not a version-string compare. State the minimum version in
   `engines` or in a comment.
6. **Tell the user** that the code depends on an experimental API, which
   flag it needs, and that the API may change in minor releases.

## Reading `added:` lists

`added: [v26.8.0, v24.22.0]` means the feature is in 24.22+ on the v24 line
and in 26.8+. It is **not** in v25.x or in 26.0–26.7. A single entry
`v26.1.0` means the feature is not on v24 at all.

## Pitfalls

- A flag that the installed version does not accept fails the process with
  `bad option`. That means the version lacks the feature, not that the
  flag is spelled wrong.
- Some modules only resolve with the `node:` prefix (`node:sqlite`,
  `node:test`, `node:bench`) and some only behind a flag. Probe with the
  flag.
- Flags that get unflagged keep an opposite `--no-experimental-*` form.
  After that, passing the old `--experimental-*` flag may warn or error.
