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

x/velociraptor/deps.ts>semver.coerce

The npm-style script runner for Deno
Latest
function semver.coerce
import { semver } from "https://deno.land/x/velociraptor@1.5.0/deps.ts";
const { coerce } = semver;

Coerces a string to semver if possible

Parameters

version: string | SemVer
optional
optionsOrLoose: boolean | Options