Launcher for Microsoft Edge Diagnostics Adapter.
Перейти к файлу
microsoft-github-policy-service[bot] a7b243f899
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-14 15:18:10 +00:00
examples Fix typo in example output 2016-04-24 04:36:36 +08:00
.gitignore Initial commit 2016-04-14 14:46:53 -07:00
LICENSE Initial commit 2016-04-14 14:46:53 -07:00
README.md Add Code of Conduct 2016-06-23 13:37:50 -07:00
SECURITY.md Microsoft mandatory file 2023-06-02 21:18:22 +00:00
index.js Merge pull request #3 from codajs/fix-resolve 2016-04-25 20:43:41 -07:00
package.json Version 1.1.5 2016-04-25 20:44:03 -07:00

README.md

edge-diagnostics-launch

Launcher for Microsoft Edge Diagnostics Adapter to make it simpler to start an instance of the Edge with diagnostics enabled.

Installation

npm install edge-diagnostics-launch

Options

{
  adapterPath: '', // Optional, override adaptor path
  port: 9222 // Optional, override socket port
}

Usage

var launch = require('edge-diagnostics-launch')
var options = {
  adapterPath: '', // Optional, override adaptor path
  port: 9222 // Optional, override socket port
}

// launch(<url>, <options>, callback)
var edge = launch('http://microsoft.com', options, function(err) {
  
  if (err) {
    console.log('Something went wrong when starting Edge', err)
  } else {
    console.log('Edge launched. Go connect')
  }
  
})

edge.on('exit', function(code) {
  console.log('Edge has excited with code', code)
})

// stdout + stderr streams from adaptor
edge.stdout.on('data', function(data) {
  console.log('edge.stdout', data)
})

edge.stderr.on('data', function(data) {
  console.log('edge.stderr', data)
})

License

MIT.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.