Skip to content

Latest commit

 

History

History
76 lines (39 loc) · 1.51 KB

File metadata and controls

76 lines (39 loc) · 1.51 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > IPackageNameParserOptions

IPackageNameParserOptions interface

Options that configure the validation rules used by a PackageNameParser instance.

Signature:

export interface IPackageNameParserOptions 

Remarks

The default validation is based on the npmjs.com registry's policy for published packages, and includes these restrictions:

  • The package name cannot be longer than 214 characters.

  • The package name must not be empty.

  • Other than the @ and / delimiters used for scopes, the only allowed characters are letters, numbers, -<></>, _<></>, and .<></>.

  • The name must not start with a . or _<></>.

Properties

Property

Modifiers

Type

Description

allowUpperCase?

boolean

(Optional) If true, allows upper-case letters in package names. This improves compatibility with some legacy private registries that still allow that.