Napoleonic Political Magnificence

    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

    3

    Version

    0.0.24

    License

    ISC

    Last publish

    Collaborators

    • jasonlaster11
    • jbhoosreddy
    • juliandescottes
    • nchevobbe