https://github.com/nichoth/localcast-cli
CLI to share events across processes
https://github.com/nichoth/localcast-cli
Last synced: about 2 months ago
JSON representation
CLI to share events across processes
- Host: GitHub
- URL: https://github.com/nichoth/localcast-cli
- Owner: nichoth
- Created: 2017-04-21T00:22:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T00:35:49.000Z (over 9 years ago)
- Last Synced: 2025-01-13T17:24:11.816Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# localcast cli
CLI for [localcast](https://github.com/mafintosh/localcast), an event emitter that works across processes.
## install
$ npm install -g localcast-cli
## example
In one terminal:
$ cast
In another terminal:
$ echo "hello" | cast -
And terminal one will log "hello".
## use
```
Listen to messages
Usage
$ cast
Options
- broadcast data from stdin
-n, --namespace start localcast with a namespace
Examples
$ cast # log localcast messages to stdout
$ echo "data" | cast - # broadcast 'data'
$ cast -n foo # listen for events in foo namespace
`
```