Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > PackageName > validate

PackageName.validate() method

Throws an exception if the specified name is not a valid package name. The packageName must not be an empty string.

Signature:

static validate(packageName: string): void;

Parameters

ParameterTypeDescription
packageNamestring

Returns:

void