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

x/fresh/src/dev/deps.ts>semver.eq

The next-gen web framework.
Extremely Popular
Go to Latest
function semver.eq
Re-export
import { semver } from "https://deno.land/x/fresh@1.4.0/src/dev/deps.ts";
const { eq } = semver;

Returns true if they're logically equivalent, even if they're not the exact same version object.

Returns

boolean

Parameters

s0: string | SemVer
s1: string | SemVer
optional
options: { includePrerelease: boolean; }

Returns

boolean