Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/nats-streaming-cli
Publish & subscribe to NATS Streaming channels.
https://github.com/derhuerst/nats-streaming-cli
cli nats-streaming
Last synced: 6 days ago
JSON representation
Publish & subscribe to NATS Streaming channels.
- Host: GitHub
- URL: https://github.com/derhuerst/nats-streaming-cli
- Owner: derhuerst
- License: isc
- Created: 2019-08-09T14:05:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T13:08:28.000Z (9 months ago)
- Last Synced: 2024-11-03T23:04:47.360Z (10 days ago)
- Topics: cli, nats-streaming
- Language: JavaScript
- Homepage: https://github.com/derhuerst/nats-streaming-cli#nats-streaming-cli
- Size: 37.1 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# nats-streaming-cli
**Publish & subscribe to [NATS Streaming (a.k.a. STAN)](https://web.archive.org/web/20230601075022/https://docs.nats.io/legacy/stan/intro) channels.**
Note that NATS Streaming had been deprecated for a long time, and has now reached its end of life.
[![npm version](https://img.shields.io/npm/v/nats-streaming-cli.svg)](https://www.npmjs.com/package/nats-streaming-cli)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/nats-streaming-cli.svg)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)## Installing
```shell
npm install -g nats-streaming-cli
```Or use [`npx`](https://npmjs.com/package/npx). ✨
## Usage
```
Usage:
echo 'a new message' | publish-to-nats-streaming-channel
Options:
--silent -s Don't log IDs of published messages.
--encoding -e Encoding to encode the message payload with. Default: utf-8
``````
Usage:
subscribe-to-nats-streaming-channel
Options:
--start -s Start with the message having this sequence nr.
--encoding -e Encoding to decode the message payload with. Default: utf-8
--format -f How to format the messages. json, raw, inspect (default)
--ack -a Acknowledge the messages received.
--metadata -m Print the message payload along its metadata.
``````
Usage:
nats-streaming-stats
Options:
--json Format data as JSON.
--raw Print raw NATS Streaming response.
Example:
nats-streaming-stats
```## Contributing
If you have a question or have difficulties using `nats-streaming-cli`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/nats-streaming-cli/issues).