A Node.js library (v0.2.0, last updated February 2015) for updating or linting a package.json file against a set of defaults. Originally designed to enforce consistent fields across multiple projects, it appears to read a template/defaults object and merge it into an existing package.json. The package is minimal, using only Node's built-in fs and path modules, and has no significant external dependencies. Its development cadence is very low (single release), and it has been largely superseded by more active tools like sort-package-json or npm-check. The project is now archived/unmaintained.
npm install update-packageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to require the package and use it to update a package.json object with default values.
Use sort-package-json or migrate to npm's built-in defaults.
Pass a shallow copy of defaults: updatePkg({...defaults}, pkg)Use dynamic import or rewrite to use require.
Switch to a maintained alternative.
Run 'npm install update-package'
Use 'const updatePkg = require('update-package')' instead of 'import updatePkg from ...'.Ensure first argument is an object with required fields.
No dependency data recorded yet.