All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.esm.satisfies.d.ts Maven / Gradle / Ivy

The newest version!
/**
 * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.
 *
 * @param version Version number to match
 * @param range Range pattern for version
 * @returns `true` if the version number is within the range, `false` otherwise.
 *
 * @example
 * ```
 * satisfies('1.1.0', '^1.0.0'); // return true
 * satisfies('1.1.0', '~1.0.0'); // return false
 * ```
 */
export declare const satisfies: (version: string, range: string) => boolean;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy