Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/semver/mod.ts>INVALID

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
variable INVALID
Re-export
import { INVALID } from "https://deno.land/std@0.220.0/semver/mod.ts";

A sentinel value used to denote an invalid SemVer object which may be the result of impossible ranges or comparator operations.

Examples

Example 1

import { equals } from "https://deno.land/std@0.220.0/semver/equals.ts";
import { parse } from "https://deno.land/std@0.220.0/semver/parse.ts";
import { INVALID } from "https://deno.land/std@0.220.0/semver/constants.ts"
equals(parse("1.2.3"), INVALID);