Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.1.1 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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc