Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method default.standardiseVersion
import { default } from "https://deno.land/x/dmm@v2.1.2/src/services/module_service.ts";

Keeps the latest release string in-line with the imported version. Latest release will contain or lose the "v" prefix to match the imported version

Parameters

importedVersion: string
  • eg "v1.0.1" or "1.0.1"
latestVersion: string
  • eg "v1.0.1" or "1.0.1"

Returns

string

The version eg "v1.0.1" if importedVersion is "v1.0.1", else "1.0.1"