Socket
Socket
Sign inDemoInstall

fs-merger

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-merger

Reads files from a real location


Version published
Weekly downloads
289K
decreased by-8.16%
Maintainers
1
Weekly downloads
 
Created
Source

Usage

let FSMerge = require('fs-merger');
let fs = new FSMerge(['test-1', 'test-2', 'test-3']);
/* test-1
    |
    -- a.txt
    -- b.txt
    
    test-2
    |
    -- c.txt
    -- d.txt
    
    test-3
    |
    -- e.txt
    -- a.txt
 */
 let content = fs.readFileSync('b.txt); //content of test-1/b.txt
 let contentA = fs.readFileSync('a.txt') // content of test-3/a.txt; here we merge left to right, duplicate files are overwritten

FAQs

Package last updated on 23 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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