Home > @rushstack/node-core-library > PackageNameParser > validate
PackageNameParser.validate() method
Throws an exception if the specified name is not a valid package name. The packageName must not be an empty string.
Signature:
validate(packageName: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
packageName | string |
Returns:
void