function find
find(): Promise<string | null>

Resolves the Chrome/Chromium executable path. Returns a Promise for API compatibility with callers, but the resolution is synchronous.

import * as Chrome from './index.ts';

const chromePath = await Chrome.find();
chromePath; // '/usr/bin/google-chrome-stable' — or null when nothing on PATH is executable

Return Type

Promise<string | null>

Usage

import { find } from "lib/chrome/find.ts";