Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
`cat` for Primus
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
.gitignore
LICENSE
README.md
example-server.js
package.json

README.md

primus-cat

cat for Primus.

Installation

npm -g install primus-cat

Usage

Basic usage

If not transformer or parser are specified, primus-cat queries /primus/spec to find out what socket specification is:

primus-cat http://localhost:8000

Specify transformer and parser

primus-cat http://localhost:8000 -t websockets -p json

Piping

You can also pipe data from primus-cat:

primus-cat http://localhost:8000 -t websockets -p json | jq '.data'
Something went wrong with that request. Please try again.