0.7.7 • Published 4 years ago
@open-node/antman v0.7.7
@open-node/antman
Debug node.js process by client REPL on net socket and is silent.
Installation
Usage
- your node.js process code
// regist variable on agents object antman.regist('key', value, 'description');
// start debugger server antman.start(listen, secret, { expire: 30 * 60 });
Execute the following command then enter REPL mode to debug
REPL debugger mode
cli tool antman demo
Table of Contents
Antman
Returns Antman Instance
regist
regist variable on agents
Parameters
Returns void
start
start socket server
Parameters
listen
string listen address,port or ip+port or sock-file-path, (optional, default9085
)secret
string OTP secret default null, unnecessary when secret be null (optional, defaultnull
)opt
object? { expire: 900 } (optional, defaultdefaultOpt
)
Returns void