# incrementify

> incrementify - generate increment file with two versions of a file base on old version

Latest version **0.3.1** (published 2015-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install incrementify
pnpm add incrementify
yarn add incrementify
bun add incrementify
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2015-04-13 |
| First published | 2014-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | yleo77 |
| Keywords | generate, increment, file |

## Links

- npm: https://www.npmjs.com/package/incrementify
- Repository: https://github.com/yleo77/incrementify
- Issues: https://github.com/yleo77/incrementify/issues
- npm.io page: https://npm.io/package/incrementify

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ^1.0.3
- [commander](https://npm.io/package/commander.md) ^2.5.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.3.1 (latest) — 2015-04-13
- 0.3.0 — 2015-04-12
- 0.2.1 — 2014-11-10
- 0.2.0 — 2014-11-10
- 0.0.1 — 2014-11-10

## README

## incrementify

Generate increment file with two versions of a file base on old version.

## Usage 

### With Command Line

```
incrementify [options] oldfile newfile
```
Supported options:

* -c chunkSize: set chunkSize (default: 12)
* -o filename: use [output-file] as output instead of STDOUT

### API

```javascript
var incrementify = require("incrementify").build;
var ret = incrementify(file_with_old_version, file_with_new_version);
console.log(JSON.stringify(ret));
```

Also support config

```javascript
var ret = incrementify(arg1, arg2, {
  oldfile_type: 'content',   // default: 'path' 
  newfile_type: 'path',      // default: 'path' 
  chunkSize: 12,             //default size
  output: 'filename'         // make sure you have write permission to this file
});
```

### Resources

* [MT - 手机腾讯网](http://mt.tencent.com/)
* [用增量更新算法为 web 应用节省流量](http://www.ibm.com/developerworks/cn/web/1401_luyf_reducejs/) by [luyongfugx](https://github.com/luyongfugx)

## License

The MIT License (MIT)

### Copyright (c) 2014 Tencent MT Team

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