Windows compatible cat shell command polyfill

Downloads in past


531.0.09 years ago9 years agoMinified + gzip package size for minicat in KB


Circle CI Coverage Status Dependency Status devDependency Status
Windows compatible cat shell command polyfill with zero dependencies


Doing development on both OSX and Windows I want to have some basic tools to behave equally. Similar to rimraf, minicat replaces cat command and behaves in the same way as original UNIX cat.
To make sure it actually behaves the same way, there are some functional tests, comparing output for both.
Note: cat adds new-line automatically if there is no extra new line at the end of file (or files). This behaviour is reproduced by minicat too.

Installation and usage

  1. Global usage

npm install -g minicat

Then whenever you need it:
minicat package.json
minicat file1.txt file2.txt

# or with mcat shorthand
mcat package.json

  1. Local usage

npm install --save-dev minicat

Use in npm scripts (works in Windows too):
  "scripts": {
    "coveralls": "minicat coverage/ | coveralls"