deno.land / std@0.224.0 / semver / can_parse.ts

can_parse.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.import { parse } from "./parse.ts";
export function canParse(version: string): boolean { try { parse(version); return true; } catch (err) { if (!(err instanceof TypeError)) { throw err; } return false; }}
std

Version Info

Tagged at
6 months ago