README
@open-node/antman
Debug node.js process by client REPL on net socket and is silent.
Installation
npm i @open-node/antman --save
Usage
- your node.js process code
const antman = require('@open-node/antman')(); // 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
antman connect 9085
- REPL debugger mode
`npm:@open-node/antman | Skypack is the agent whose be debugged node.js process `help` is tips info for you
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