Skip to content

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.

Notifications You must be signed in to change notification settings

Sheetaa/merge-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
});

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published