# dependency-version-sync

> Synchronize and update the dependencies of the package.json to the installed version

Latest version **0.4.4** (published 2021-12-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install dependency-version-sync
pnpm add dependency-version-sync
yarn add dependency-version-sync
bun add dependency-version-sync
```

Provides the command `dvs`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.4 |
| Published | 2021-12-18 |
| First published | 2020-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Porky Ke |
| Maintainers | porky-prince |
| Keywords | npm, yarn, package, dependency, version, sync, update |

## Links

- npm: https://www.npmjs.com/package/dependency-version-sync
- Repository: https://github.com/porky-prince/porky-cli
- Homepage: https://github.com/porky-prince/porky-cli/packages/dependency-version-sync#readme
- Issues: https://github.com/porky-prince/porky-cli/issues
- npm.io page: https://npm.io/package/dependency-version-sync

## Dependencies (3)

- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.0
- [commander](https://npm.io/package/commander.md) ^5.1.0
- [porky-helper](https://npm.io/package/porky-helper.md) ^0.4.4

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.4.4 (latest) — 2021-12-18
- 0.4.1 — 2020-07-28
- 0.4.0 — 2020-07-04
- 0.3.0 — 2020-06-26
- 0.2.2 — 2020-05-20
- 0.2.1 — 2020-05-19
- 0.2.0 — 2020-05-18

## README

[![npm][npm]][npm-url]
[![node][node]][node-url]
[![size][size]][size-url]

# dependency-version-sync

> Synchronize and update the dependencies of the package.json to the installed version

## Install

npm:

```sh
$ npm install -g dependency-version-sync
```

yarn:

```sh
$ yarn add global dependency-version-sync
```

## Usage

### Using in code

#### Using es5 in node

```js
const dvs = require('dependency-version-sync');

dvs(opts);
```

#### Using es6 or typescript in node

```js
import dvs from 'dependency-version-sync';

dvs(opts);
```

### Command line usage

First, you have to install the dependency package globally

```sh
$ dvs [options]
```

example:

```sh
$ dvs -m yarn -pre dev -f "^@babel.+" -i
```

#### Command line options

```
Options:
  -v, --version                output the version number
  -c, --cwd <path>             used as current working directory for `exec` in npm listing
  -m, --packageManager <name>  npm or yarn (default: "npm")
  -p, --pre <pre>              select a package.json dependencies prop, option:["","dev","optional"], default all dependencies props
  -f, --filter <package>       RegExp or String, filter specified packages
  -i, --install                whether to execute `npm install` for synchronization
  -h, --help                   display help for command
```

[npm]: https://img.shields.io/npm/v/dependency-version-sync.svg
[npm-url]: https://npmjs.com/package/dependency-version-sync
[node]: https://img.shields.io/node/v/dependency-version-sync.svg
[node-url]: https://nodejs.org
[size]: https://packagephobia.now.sh/badge?p=dependency-version-sync
[size-url]: https://packagephobia.now.sh/result?p=dependency-version-sync

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