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
Parameter | Type | Description |
---|---|---|
scope | string | Must be either an empty string, or a scope name such as "@example" |
unscopedName | string | Must be a nonempty package name that does not contain a scope |
Returns:
string
A full package name such as "@example/some-library".