Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > PackageNameParser > isValidName

PackageNameParser.isValidName() method

Returns true if the specified package name is valid, or false otherwise.

Signature:

isValidName(packageName: string): boolean;

Parameters

ParameterTypeDescription
packageNamestring

Returns:

boolean

Remarks

This function will not throw an exception.