UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

69 lines (36 loc) 1.13 kB
--- lang: en title: 'API docs: tsdocs.getunscopedpackagename' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/tsdocs permalink: /doc/en/lb4/apidocs.tsdocs.getunscopedpackagename.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/tsdocs](./tsdocs.md) &gt; [getUnscopedPackageName](./tsdocs.getunscopedpackagename.md) ## getUnscopedPackageName() function Get un-scoped package name **Signature:** ```typescript export declare function getUnscopedPackageName(name: string): string; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> name </td><td markdown="1"> string </td><td markdown="1"> Name of the npm package </td></tr> </tbody></table> **Returns:** string ## Example - '<!-- -->@<!-- -->loopback/context' =<!-- -->&gt; 'context' - 'express' =<!-- -->&gt; 'express'