Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidName ¶
func ParseWorkspaces ¶
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 ¶
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) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.