chrome-launcher
Version:
Launch latest Chrome with the Devtools Protocol port open
14 lines (11 loc) • 339 B
JavaScript
const fs = require('fs');
const path = require('path');
module.exports = function(filename) {
if (!fs.existsSync(path.join(__dirname, filename))) {
console.log(
'Oops! Looks like the chrome-launcher files needs to be compiled. Please run:');
console.log(' yarn; yarn build;');
process.exit(1);
}
}