Home > @microsoft/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

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”.