npm.io
1.0.2 • Published 2 years ago

@types/is-semver

Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/is-semver

Summary

This package contains type definitions for is-semver (https://github.com/IonicaBizau/is-semver#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-semver.

index.d.ts

export = isSemver;

/**
 * Check if an input value is a valid semver version or not.
 *
 * @param input The version string to check.
 * @returns `true` if the input is a valid semver version or `false` otherwise.
 *
 * @example
 * import isSemver = require("is-semver");
 *
 * console.log(isSemver("1.2.3"));
 * // => true
 *
 * console.log(isSemver("a.b.c"));
 * // => false
 *
 * console.log(isSemver("foo"));
 * // => false
 */
declare function isSemver(input: string): boolean;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.