Rush StackShopBlogEvents
Skip to main content

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

PackageNameParser.combineParts() method

Combines an optional package scope with an unscoped root name.

Signature:

combineParts(scope: string, unscopedName: string): string;

Parameters

ParameterTypeDescription
scopestringMust be either an empty string, or a scope name such as "@example"
unscopedNamestringMust be a nonempty package name that does not contain a scope

Returns:

string

A full package name such as "@example/some-library".