1.2.1 • Published 10 months ago
@rimiti/chromestart v1.2.1
@rimiti/chromestart
Description
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.
Install
yarn add @rimiti/chromestartExamples
Use it as a library
import { getProfiles } from '.';
import { EVariant } from './browser';
console.log(getProfiles(EVariant.CHROME));
[
{
displayName: 'dimitri.dobairro@dimsolution.com',
profileDirName: 'Default',
profileDirPath: '/Users/dimitri.dobairro@dimsolution.com/Library/Application Support/Google/Chrome/Default',
profilePictureUrl: null
},
{
displayName: 'example@dimsolution.com',
profileDirName: 'John Doe',
profileDirPath: '/Users/Profile 2/Library/Application Support/Google/Chrome/Default',
profilePictureUrl: null
}
]CLI
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 commandExamples:
# List all available profiles for the variant "CHROME"
$ chromestart -variant CHROME --list-profile
# Open Chrome with the profile "dimitri.dobairro@dimsolution.com" and the url "https://example.com"
$ chromestart --variant CHROME --profile-name "dimitri.dobairro@dimsolution.com" --url https://example.comLicense
MIT © Dimitri DO BAIRRO