🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

merge-files

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-files - npm Package Compare versions

Comparing version

to
0.1.2

4

index.js

@@ -17,3 +17,3 @@ /**

module.exports = function mergeFiles(inputPathList, outputPath) {
fs.openSync(outputPath, 'w+');
var fd = fs.openSync(outputPath, 'w+');
var output = fs.createWriteStream(outputPath);

@@ -27,5 +27,7 @@ var inputList = inputPathList.map((path) => {

multiStream.on('end', () => {
fs.closeSync(fd);
resolve(true);
});
multiStream.on('error', () => {
fs.closeSync(fd);
reject(false);

@@ -32,0 +34,0 @@ });

{
"name": "merge-files",
"version": "0.1.1",
"version": "0.1.2",
"description": "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.",

@@ -5,0 +5,0 @@ "main": "index.js",