Rush StackShopBlogEvents
Skip to main content

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

ParameterTypeDescription
packageNamestring

Returns:

void