Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const finder: (() => string[]) | undefined = (() => {
// Use already known path within Marp CLI official Docker image
if (process.env.IS_DOCKER) return () => ['/usr/bin/chromium-browser']
// Use Chrome installed to Windows within WSL
if (isWSL()) return chromeFinder.wsl
return chromeFinder[process.platform]
})()