Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function semver.coerce
import { semver } from "https://deno.land/std@0.136.0/_tools/release/deps.ts";
const { coerce } = semver;

Coerces a string to semver if possible

Parameters

version: string | SemVer
optional
optionsOrLoose: boolean | Options