posix-cat

A POSIX-like cat in JavaScript

Usage no npm install needed!

<script type="module">
  import posixCat from 'https://cdn.skypack.dev/posix-cat';
</script>

README

posix-cat :cat2:

A POSIX-like cat in JavaScript.

NPM

build status Build status NPM version

Sauce Test Status

CLI

echo "// before" | cat one.js two.js three.js > output.js

API

var Cat = require('posix-cat')

var cat = new Cat(argv)

Returns a transform stream. argv can be:

  • _: An array of arguments of file paths to concat; such as cat one.js two.js three.js
  • fs: Override the file system with a node/io compatible fs.
  • u: Write bytes without buffering.

license

(c) 2015 Kyle Robinson Young. MIT License