Library for normalizing package.json files using a schema-based approach. Version 0.5.0 (last released 2019) is stable but in maintenance mode. It standardizes fields like repository, author, license, and bin, and can infer missing values from the filesystem. Unlike simple validation tools, it transforms and completes package.json objects according to configurable schema rules. Suitable for CLI tools, scaffolding, or build processes that need consistent package metadata.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The package exports a single function; default import is recommended for ESM. CJS require also works.
The constructor is the default export; named import is incorrect.
Options must be passed to the constructor; setting afterwards may not apply correctly.
Demonstrates importing normalize-pkg, creating an instance, and normalizing a package.json object. Note: uses import assertions for JSON modules.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.