包详细信息

package-json-helper

keindev2.5kMIT6.0.1

Helper for updating, comparing and fetching changes in package.json

helper, json, package, util

自述文件

Package logo

Build Status npm Standard Shared Config

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.

更新日志