nats-ex-repl
v1.1.0
Published
Repl for [NATS EX](https://github.com/zhaoyao91/nats-ex).
Downloads
11
Readme
NATS EX Repl
Repl for NATS EX.
Installation
npm i -g nats-ex-repl
Usage
Enter repl:
nats-ex-repl
Then in the repl:
emit('hello')
justCall('echo', 'my input')
Command Options
- start = true - if false, it won't create natsEx automatically. you can use
connect
to connect nats manually in the repl - url = "nats://localhost:4222"
- logMessageEvents = false
- logMessageErrors = true
Repl Context
There are several variables in the repl context:
- connect
- NatsEx
- NatsExError
- Protocol
- on
- emit
- call
- justCall -
(topic, data, options) => requestId
, similar tocall
, but just print result and error
License
MIT