package-json-helper
v6.0.1
Published
Helper for updating, comparing and fetching changes in package.json
Downloads
688
Readme
Package.json helper - reads / writes / controls :package:
Install
npm install package-json-helper --save-dev
Usage
import { Package } from 'package-json-helper';
const pkg = new Package();
await pkg.read();
pkg.name = 'awesome-package-name';
pkg.version = '0.9.0';
await pkg.save();
await pkg.install(
new Map([
['eslint', '8.x'],
['jest', '27.x'],
]),
['--save-dev']
);
Examples
standard-shared-config - Easy way to create and share your boilerplate configs. One shared config to rule them all:loop::package:
API
Read the API documentation for more information.