a7b243f899
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days. |
||
---|---|---|
examples | ||
.gitignore | ||
LICENSE | ||
README.md | ||
SECURITY.md | ||
index.js | ||
package.json |
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.