npm

Need private packages and team management tools?Check out npm Orgs. »

devtools-client-adapters

0.0.24 • Public • Published

DevTools Client Adapters

DevTools Client Adapters provides a common interface for:

  1. getting firefox, chrome, and node tabs
  2. connecting to a tab
  3. communicating with the tab over RDP
get Firefox, Chrome, and Node tabs
client.firefox.connectClient().then(tabs => {
  console.log(tabs)
});
 
client.chrome.connectClient().then(tabs => {
  console.log(tabs)
});
 
client.chrome.connectNodeClient().then(tabs => {
  console.log(tabs)
});
 
 
client.chrome.connectClient().then(tabs => {
  console.log(tabs)
});
connect to either Firefox, Chrome, or Node
client.startDebuggingTab(tab)
client.startDebuggingNode(tab)
send commands to the process
tab.setBreakpoint({ sourceId: 23, line: 2, column: 0 })
tab.resume()
receive events from the process
tab.on("paused", pauseData => console.log(pauseData))

Keywords

none

install

npm i devtools-client-adapters

Downloadsweekly downloads

12

version

0.0.24

license

ISC

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability