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
- Host: GitHub
- URL: https://github.com/shama/posix-cat
- Owner: shama
- Created: 2015-02-27T18:05:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-05T23:46:19.000Z (over 9 years ago)
- Last Synced: 2024-03-22T02:23:33.488Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Lists
- awesome-nodejs-cross-platform-cli - posix-cat - Concatenate and print files like `cat`. (Packages)
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