Rush StackShopBlogEvents
Skip to main content

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

PackageName.combineParts() method

Combines an optional package scope with an unscoped root name.

Signature:

static 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".