package-json-helper

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

MIT 24 个版本
安装
npm install package-json-helper
yarn add package-json-helper
pnpm add package-json-helper
bun add package-json-helper
README

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.

版本列表
6.0.1 2024-02-14
6.0.0 2023-08-19
5.0.2 2023-07-25
5.0.0 2023-07-23
4.0.6 2022-11-21
4.0.5 2022-04-20
4.0.4 2022-04-04
4.0.3 2022-03-17
4.0.2 2022-01-16
4.0.1 2022-01-16
4.0.0 2022-01-04
3.0.6 2022-01-03
3.0.4 2021-12-20
3.0.2 2021-12-20
3.0.1 2021-12-20
3.0.0 2021-12-19
2.0.3 2021-12-19
2.0.2 2021-12-19
2.0.1 2021-12-18
2.0.0 2021-12-17
1.2.1 2021-12-17
1.2.0 2021-12-03
1.1.0 2021-11-30
0.10.0 2021-08-26