A helper class for cyrus-and/chrome-remote-interface
npm install chrome-helper      
A helper class for cyrus-and/chrome-remote-interface
Primarily designed to reduce repeated code in Topmarks plugins.
Create a new instance of the ChromeHelper and pass the port and url to the constructor.
``js`
var chromeHelper = new ChromeHelper(options.port, options.url);
Use startupChrome() to connect and open a new tab.
`js
var ChromeHelper = require('chrome-helper');
var samplePlugin = function samplePlugin(app, options) {
var chromeHelper = new ChromeHelper(options.port, options.url);
return chromeHelper.startupChrome().then(function (results) {
// Do some stuff
return Promise.resolve(results);
}).then(function () {
return chromeHelper.shutdownChrome();
}).catch(console.log);
};
samplePlugin.attributes = {
name: 'samplePlugin'
};
module.exports = samplePlugin;
``