Rush StackShopBlogEvents
Skip to main content

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

PackageName.isValidName() method

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

Signature:

static isValidName(packageName: string): boolean;

Parameters

ParameterTypeDescription
packageNamestring

Returns:

boolean

Remarks

This function will not throw an exception.