Skip to content

yleo77/incrementify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Also support config

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

License

The MIT License (MIT)

Copyright (c) 2014 Tencent MT Team

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published