0.0.2 • Published 1 year ago

@tamimi-org/retail-order v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Event API: retail-order Data

This CLI tool publishes a stream of real-time retail-order Data on predefined destination Solace PubSub+ Broker

How to run

npx @event-api/retail-order [OPTIONS]. Note: Still not published! replace @event-api with @tamimi-org

Below are the following options

FlagDescriptionTypeDefault
-v, --versionoutputs the version number
-h, --hostDestination Solace PubSub+ Broker to publish on websocket port in the form of host:port<host>:<port>ws://localhost:8008
-u, --userDestination Solace PubSub+ Broker username:password<username>:<password>default:default
-m, --msgVPNDestination Solace PubSub+ Broker message VPN<value>default
-d, --documentationLaunch hosted AsyncAPI documentation
--verboseVerbose output logsboolFalse
--no-throttleSkip throttling of publishing to destination broker
--helpdisplay help for command

Development

To run this cli tool locally

  • npm install
  • node index --help

To contribute to this CLI tool

  • Update package.json containing the necessary metadata needed to define the cli tool
    • Update description in package.json
    • Update source_broker in package.json
    • Update asyncAPI documentation in package.json
    • Update version in package.json
  • npm publish --access public

Note: If you dont have access to publish to the @event-api npm registry, contact the admins

To-do

  • Throttle logic in Message callback function of subscriber
    • Message eliding?