Skip to content

rimiti/chromestart

Repository files navigation

@rimiti/chromestart

License PRs Welcome

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/chromestart

Examples

Use it as a library

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
    }
]

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 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

License

MIT © Dimitri DO BAIRRO

About

Open Google Chrome / Canary / Chromium Profiles with args

Resources

Stars

Watchers

Forks

Packages

No packages published