1.0.2 • Published 3 years ago
nv-inspector-protocol-def v1.0.2
nv-inspector-protocol-def
- nv-inspector-protocol-def
- search dev-tool protocol params
install
- npm install nv-inspector-protocol-def
usage
const prot = require("nv-inspector-protocol-def")
example
> prot.js_cmd_names_.filter(r=>r.includes('Runtime'))
[
'Profiler.enableRuntimeCallStats',
'Profiler.disableRuntimeCallStats',
'Profiler.getRuntimeCallStats',
'Runtime.awaitPromise',
'Runtime.callFunctionOn',
'Runtime.compileScript',
'Runtime.disable',
'Runtime.discardConsoleEntries',
'Runtime.enable',
'Runtime.evaluate',
'Runtime.getIsolateId',
'Runtime.getHeapUsage',
'Runtime.getProperties',
'Runtime.globalLexicalScopeNames',
'Runtime.queryObjects',
'Runtime.releaseObject',
'Runtime.releaseObjectGroup',
'Runtime.runIfWaitingForDebugger',
'Runtime.runScript',
'Runtime.setAsyncCallStackDepth',
'Runtime.setCustomObjectFormatterEnabled',
'Runtime.setMaxCallStackSizeToCapture',
'Runtime.terminateExecution',
'Runtime.addBinding',
'Runtime.removeBinding'
]
>
> prot.js_get_cmd('Runtime.terminateExecution')
{
name: 'terminateExecution',
description: 'Terminate current or next JavaScript execution.\n' +
'Will cancel the termination when the outer-most script execution ends.',
experimental: true
}
>
APIS
> Object.keys(prot)
[
'js_get_ver', 'bw_get_ver',
'js_get_domains', 'bw_get_domains',
'js_get_types', 'bw_get_types',
'js_get_commands', 'bw_get_commands',
'js_get_events', 'bw_get_events',
'js_get_typ', 'bw_get_typ',
'js_get_cmd', 'bw_get_cmd',
'js_get_event', 'bw_get_event',
'js', 'bw',
'js_typ_names_', 'js_cmd_names_',
'js_event_names_', 'bw_typ_names_',
'bw_cmd_names_', 'bw_event_names_'
]
>
LICENSE
- ISC