# npm-fast-sync

> Incremental npm install with downgrade support.

Latest version **1.2.1** (published 2016-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-fast-sync
pnpm add npm-fast-sync
yarn add npm-fast-sync
bun add npm-fast-sync
```

Provides the commands `nsync`, `npm-fast-sync`.

## 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 | 1.2.1 |
| Published | 2016-08-22 |
| First published | 2016-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.2 |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | Julian Diaz |
| Maintainers | jdiaz-ofh |

## Links

- npm: https://www.npmjs.com/package/npm-fast-sync
- Repository: https://github.com/onefinancial/npm-fast-sync
- Homepage: https://github.com/onefinancial/npm-fast-sync#readme
- Issues: https://github.com/onefinancial/npm-fast-sync/issues
- npm.io page: https://npm.io/package/npm-fast-sync

## Dependencies (5)

- [rx](https://npm.io/package/rx.md) ^4.0.7
- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.5.0
- [semver](https://npm.io/package/semver.md) ^5.1.0
- [es6-object-assign](https://npm.io/package/es6-object-assign.md) ^1.0.1

## Recent versions

- 1.2.1 (latest) — 2016-08-22
- 1.2.0 — 2016-05-17
- 1.1.0 — 2016-01-21
- 1.0.1 — 2016-01-12
- 1.0.0 — 2016-01-12

## README

# npm-fast-sync
> Incremental npm install with downgrade support.

This script is a *much* faster alternative to `npm install` when you want to keep your **node_modules** folder up to date.

It will upgrade/downgrade all modules in **dependencies** and **devDependencies** that do not satisfy the [semver](http://semver.org/) spec. This also works for git dependencies that are tagged with the version number like so:

```
git+ssh://git@github.com/private-company/private-module.git#3.2.1
```

## Installing

```shell
npm install -g npm-fast-sync
```

## Usage

Just run `npm-fast-sync` and this script will take care of the rest!

```shell
cd ~/my/node/project
npm-fast-sync
```


## Technical details

- The script will first run `npm prune` to clean out unused dependencies.
- For each dependency in `dependencies` and `devDependencies`, it will evaluate if the installed version satisfies the spec.
- All the unsatisfied dependencies are collected together with their specs into a single `npm install` command. For example if the **no-op** and **lodash** modules need updating: `npm install no-op@1.0.0 lodash@^3.0.0`.

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