Windows compatible cat shell command polyfill
npm install minicat




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.
#### 1. Global usage
``sh`
npm install -g minicat
Then whenever you need it:
`sh
minicat package.json
minicat file1.txt file2.txt
#### 2. Local usage
`sh
npm install --save-dev minicat
`Use in npm scripts (works in Windows too):
`json
{
"scripts": {
"coveralls": "minicat coverage/lcov.info | coveralls"
}
}
``