Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function checkPuppeteer() {
try {
const packageConfig = require('puppeteer/package.json');
return semver.satisfies(packageConfig.version, '>=1.19.0');
}
catch (e) {
return false;
}
}
'use strict';
function output(value) {
process.stdout.write(JSON.stringify(value));
}
try {
const manifest = require('puppeteer/package.json');
output(manifest.version);
} catch (exception) {
output(null);
}