deno.land / std@0.201.0 / semver / comparator_format.ts
123456789101112131415// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.import type { SemVerComparator } from "./types.ts";import { format } from "./format.ts";
/** * Formats the comparator into a string * @example >=0.0.0 * @param comparator * @returns A string representation of the comparator */export function comparatorFormat(comparator: SemVerComparator) { const { semver, operator } = comparator; return `${operator}${format(semver)}`;}
Version Info