Page Contents

Home > @loopback/tsdocs > getUnscopedPackageName

getUnscopedPackageName() function

Get un-scoped package name

Signature:

export declare function getUnscopedPackageName(name: string): string;

Parameters

Parameter Type Description
name string Name of the npm package

Returns:

string

Example

  • @loopback/context’ => ‘context’ - ‘express’ => ‘express’