node-chrome-debugger
v1.0.4-b
Published
This is a plugin use chrome console remote debug for Node.js
Downloads
9
Readme
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_id]The 'client_id' must mate the 'client_id' in chrome plugin 'SocketServer'
- [force_client_id]The config is make sure only send to some client_id
- [send_url]This is Socket Server address,The default is 'http://localhost:1116/'