merge-files

0.1.2 • Public • Published

merge-files

Combine multiple files into one file in order based on multistream. It's a promise version that applies to merging large files that taking long time.

Install

npm i merge-files

Usage

import mergeFiles from 'merge-files';
 
const outputPath = __dirname + '/result.txt';
 
const inputPathList = [
    __dirname + '/1.txt',
    __dirname + '/2.txt',
    __dirname + '/3.txt'
];
 
// status: true or false
const status = await mergeFiles(inputPathList, outputPath);
// or
mergeFiles(inputPathList, outputPath).then((status) => {
    // next
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    5,063
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    5,063
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i merge-files

Weekly Downloads

5,063

Version

0.1.2

License

ISC

Unpacked Size

2.21 kB

Total Files

3

Last publish

Collaborators

  • yaochang