merge-files
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2210
32
3