A POSIX-like cat
in JavaScript.
echo "// before" | cat one.js two.js three.js > output.js
var Cat = require('posix-cat')
Returns a transform stream. argv
can be:
_
: An array of arguments of file paths to concat; such ascat one.js two.js three.js
fs
: Override the file system with a node/io compatible fs.u
: Write bytes without buffering.
(c) 2015 Kyle Robinson Young. MIT License