Command line tool for BunnyBus.
Lead Maintainer: Lam Chan
This is a command line tool for supporting the BunnyBus ecosystem. Support comes in the form of providing a piping utility to bus data via Linux/Unix pipes. The implementation of this tool embodies the ideology around building small specialized components to compose a better whole.
npm i -g bunnybus-cli
# Subscribe a live stream of data from a queue to a file.
bunnybus -S -c /path/to/config.json > output.json
# Publish Json formatted string from a file and push to Rabbit MQ
cat input.json | bunnyBus -P -c /path/to/config.json
# Subscribe a live stream of data and pipe it back to RabbitMQ live stream it to a file
bunnybus -S -c /path/to/config.json | bunnyBus -P -t -c /path/to/config.json > output.json
See the API Reference.
Check out the Examples
We love community and contributions! Please check out our guidelines before making any PRs.
- Install Docker
- Clone this project and
cd
into the project directory - Run the commands below
[sudo] npm link
npm install
npm run start-docker
npm test
npm run stop-docker
npm link
is necessary for the test to function since the test suite executes end to end against the CLI commands.
For normal development/test iterations, there is no need to stop the docker container. When the docker container is already running, just run npm test
.