Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidName ¶
func ParseWorkspaces ¶ added in v0.67.0
ParseWorkspaces returns slice of workspaces `workspaces` field supports 2 types - string array and map with `packages` key only cf. https://github.com/npm/map-workspaces#usage
Types ¶
type License ¶ added in v0.71.0
type License struct {
// contains filtered or unexported fields
}
License represents the npm "license" field, which historically supports several shapes:
- string: "MIT"
- object (legacy): {"type": "MIT", "url": "..."}
- array of objects (legacy): [{"type": "MIT", ...}, {"type": "Apache-2.0", ...}]
See https://docs.npmjs.com/cli/v11/configuring-npm/package-json#license
func (License) Names ¶ added in v0.71.0
Names returns the list of license names extracted from the field.
func (*License) UnmarshalJSON ¶ added in v0.71.0
Click to show internal directories.
Click to hide internal directories.