UNPKG

npm-package-json-lint

Version:
10 lines (9 loc) 421 B
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;