# @corratech/package-utils

> command-line tool to merge package.json files

Latest version **2.0.2** (published 2020-02-21) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @corratech/package-utils
pnpm add @corratech/package-utils
yarn add @corratech/package-utils
bun add @corratech/package-utils
```

Provides the commands `package-deps`, `package-merge`, `package-resolve`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2020-02-21 |
| First published | 2020-02-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mparanjape@corra.com |
| Maintainers | ajonescorra, binucorra, manishparanjape |
| Keywords | node, package, merge, compose, cli |

## Links

- npm: https://www.npmjs.com/package/@corratech/package-utils
- Repository: https://github.com/corratech/package-utils
- Homepage: https://github.com/corratech/package-utils#readme
- Issues: https://github.com/corratech/package-utils/issues
- npm.io page: https://npm.io/package/@corratech/package-utils

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) 2.9.x

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2020-02-21
- 2.0.1 — 2020-02-21
- 2.0.0 — 2020-02-19
- 1.0.4 — 2020-02-19

## README

Utils to work with `package.json` files.

Install globally or locally

    npm install -g @corratech/package-utils

# package-merge

With `package-merge` you merge multiple files into one `package.json` file.

    package-merge package.a.json package.b.json package.c.json > package.json

On the command line it exits when there is no strategy to merge the values.
In the API you can provide custom handling via callback.

# package-deps

    package-deps -d a/package.json b/package.json
    mkdirp@0.5.1
    moment@2.11.2

With `package-deps` you get the dependencies of all the project files passed in. 
With the `-d` option this includes only the `devDependencies` section. 
With the `-r` option this includes only the `dependencies` section. 
With the `-a` option this includes both the sections. 
On the command line clashing versions will be reported and the last version wins. You should manually update the packages with correct version.

# package-resolve

Resolves dependencies set to `RESOLVE` to what's in the dict.

    cat package.json | package-resolve dict.json > out.json

---
_Source: https://npm.io/package/@corratech/package-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
