1.0.4-b • Published 3 years ago
node-chrome-debugger v1.0.4-b
How to use
npm install -D node-chrome-debugger
Demo
const SocketLog = require('node-chrome-debugger');
global.slog = new SocketLog({
'client_id': 'michael',
'force_client_id': 'michael',
});
slog.init();
slog.group('Success');
slog.info("Welcome to use 'node-chrome-debugger'");
slog.groupEnd()
slog.send();
param
- client_idThe 'client_id' must mate the 'client_id' in chrome plugin 'SocketServer'
- force_client_idThe config is make sure only send to some client_id
- send_urlThis is Socket Server address,The default is 'http://localhost:1116/'