npm-package-json-lint
Version:
Configurable linter for package.json files.
10 lines (9 loc) • 421 B
TypeScript
import { PackageJson } from 'type-fest';
/**
* Determines whether or not the node's value is a valid semantic version
*
* @param packageJsonData Valid JSON
* @param nodeName Name of a node in the package.json file
* @return True if the node is a valid version number or is missing. False if it is not.
*/
export declare const isValidVersionNumber: (packageJsonData: PackageJson | any, nodeName: string) => boolean;