🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

merge-cat

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-cat

Cat tool that does a streaming merge sort on the input and outputs the lines of files concatenated in sort order.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

merge-cat

Cat tool that does a streaming merge sort on the input and outputs the lines of files concatenated in sort order. Expects the input files to be sorted as well

npm install -g merge-cat

Usage

npm install -g merge-cat
# will stream out the sorted concatenation of the two files
merge-cat sorted-file-1 sorted-file-2

If you want to keep reading the files (useful if you are catting logs) use --follow

merge-cat sorted-file-1 sorted-file-2 --follow

If you only want to read from the end of the files use --tail

merge-cat sorted-file-1 sorted-file-2 --tail

JS API

There is a js api available as well

var merge = require('merge-cat')
var stream = merge(sortedStream1, sortedStream2)
stream.pipe(process.stdout)

License

MIT

FAQs

Package last updated on 20 Jul 2016

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