This package aims to hightly improve the way you start your Chrome (and variant) browser. It allows you to start your browser with a specific profile, a specific url.
yarn add @rimiti/chromestart
import { getProfiles } from '.';
import { EVariant } from './browser';
console.log(getProfiles(EVariant.CHROME));
[
{
displayName: '[email protected]',
profileDirName: 'Default',
profileDirPath: '/Users/[email protected]/Library/Application Support/Google/Chrome/Default',
profilePictureUrl: null
},
{
displayName: '[email protected]',
profileDirName: 'John Doe',
profileDirPath: '/Users/Profile 2/Library/Application Support/Google/Chrome/Default',
profilePictureUrl: null
}
]
Usage:
$ chromestart --help
Usage: cli [options]
Open browser with a specific profile
Options:
-V, --version output the version number
-v, --variant <variant> Chrome variant (CHROME, CHROME_CANARY, CHROMIUM)
-p, --profile-name <profileName> Profile name
-u, --url <url> URL to open
-l, --list-profiles List all available profiles
-h, --help display help for command
Examples:
# List all available profiles for the variant "CHROME"
$ chromestart -variant CHROME --list-profile
# Open Chrome with the profile "[email protected]" and the url "https://example.com"
$ chromestart --variant CHROME --profile-name "[email protected]" --url https://example.com
MIT © Dimitri DO BAIRRO