Socket
Book a DemoInstallSign in
Socket

pulsar-companion

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pulsar-companion

A companion CLI tool for Apache Pulsar

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
0
Created
Source

Pulsar Companion

Pulsar Companion is a CLI tool for Apache Pulsar. It allows you to create producers and consumers, send and receive messages, and more.

Installation

npm install -g pulsar-companion

Usage

# Producer
npx pulsar-companion --send "Hello" --topic "myTopic"

# Consumer
npx pulsar-companion --topic "myTopic" --type "Failover" -s "my_sub"

# Reader
npx pulsar-companion --topic "myTopic" --since "2024-01-20T10:00:00Z"
npx pulsar-companion --topic "myTopic" --since "latest"

# About Pulsar Companion
npx pulsar-companion --help
npx pulsar-companion --version

Stress Test

To make some load tests, once this repository is cloned, you can run the following commands:

npx pulsar-companion-stress
npx pulsar-companion-stress --count 1000 --delay 50 --topic "myTopic"

Configuration

Configuration is stored in ~/.pulsar-companion/config.json. Delete this file to reset.

Contributing

git clone https://github.com/davlgd/pulsar-companion.git
cd pulsar-companion
npm install

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Keywords

pulsar

FAQs

Package last updated on 09 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts