Rush StackShopBlogEvents
Skip to main content

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

PackageNameParser.getUnscopedName() method

The parsed NPM package name without the scope.

Signature:

getUnscopedName(packageName: string): string;

Parameters

ParameterTypeDescription
packageNamestring

Returns:

string

Remarks

For example, if the parsed input was "@scope/example", then the name would be "example".