Home > @microsoft/node-core-library > PackageName > getUnscopedName

PackageName.getUnscopedName() method

The parsed NPM package name without the scope.

Signature:

static getUnscopedName(packageName: string): string;

Parameters

Parameter Type Description
packageName string  

Returns:

string

Remarks

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