@yankeeinlondon/package-json
v1.0.0-beta.2
Published
identifies, types, loads, and pre-fills various package files
Readme
package-json
A lightweight CJS/ESM library for working with package.json files. Includes:
PackageJson- a type which represents the key/value pairs of apackage.jsonfileisPackageJson()- type guard for validating content as being a validpackage.jsonformat.parsePackageJson()- attempts to load the package.json file from a specified directory, reports appropriate errors when encountered, validates and types results on successinitializePackageJson()- interogates the system to pre-populate sensible defaults for a newpackage.jsonwhile allowing programatic overrides.
