| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > PackageNameParser > tryParse
This attempts to parse a package name that may include a scope component. The packageName must not be an empty string.
Signature:
tryParse(packageName: string): IParsedPackageNameOrError;|
Parameter |
Type |
Description |
|---|---|---|
|
packageName |
string |
Returns:
an IParsedPackageNameOrError structure whose error property will be nonempty if the string could not be parsed.
This function will not throw an exception.