Skip to content

Latest commit

 

History

History
62 lines (33 loc) · 1022 Bytes

File metadata and controls

62 lines (33 loc) · 1022 Bytes
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > PackageNameParser > getScope

PackageNameParser.getScope() method

The parsed NPM scope, or an empty string if there was no scope. The scope value will always include the at-sign.

Signature:

getScope(packageName: string): string;

Parameters

Parameter

Type

Description

packageName

string

Returns:

string

Remarks

For example, if the parsed input was "<></>@<></>scope/example", then scope would be "<></>@<></>scope".