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

x/molt/lib/dependency.ts>isPreRelease

Update dependencies the Deno way
Latest
function isPreRelease
import { isPreRelease } from "https://deno.land/x/molt@0.17.2/lib/dependency.ts";

Check if the given version string represents a pre-release.

Examples

Example 1

isPreRelease("0.1.0"); // -> false
isPreRelease("0.1.0-alpha.1"); // -> true

Parameters

version: string

Returns

boolean