Skip to main content

Module package_json

Module package_json 

Source
Expand description

Minimal package.json reader for consumers that pin dependency versions there (rather than resolving against the registry).

Structs§

Dependency
A dependency parsed from a package.json dependencies map.
PackageJson
Browser-favoring conditional-exports resolver over a parsed package.json.

Enums§

Entry
An import-map-worthy entry derived from a package’s package.json.
PackageType
The "type" field of a package.json (Node defaults to CommonJS).

Functions§

parse_dependencies
Parse the dependencies section of a package.json.