Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/shama/posix-cat

:cat2: A POSIX-like cat in JavaScript
https://github.com/shama/posix-cat

Last synced: 3 months ago
JSON representation

:cat2: A POSIX-like cat in JavaScript

Lists

README

        

# [posix-cat](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cat.html) :cat2:

A POSIX-like `cat` in JavaScript.

[![NPM](https://nodei.co/npm/posix-cat.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/posix-cat/)

[![build status](https://secure.travis-ci.org/shama/posix-cat.svg)](https://travis-ci.org/shama/posix-cat)
[![Build status](https://ci.appveyor.com/api/projects/status/hqxkew74fkg8mg09)](https://ci.appveyor.com/project/shama/posix-cat)
[![NPM version](https://badge.fury.io/js/posix-cat.svg)](https://badge.fury.io/js/posix-cat)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/shama.svg)](https://saucelabs.com/u/shama)

## CLI

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

## API

```js
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