Skip to content

RUNTIMES

All known runtime values as a readonly tuple.

Useful for validation, iteration, and exhaustiveness checks.

Signatures

ts
const RUNTIMES: readonly ["node", "bun", "deno", "unknown"];

Examples

ts
if (RUNTIMES.includes(value)) {
  // value is a valid Runtime
}

See Also

Released under the MIT License.