mac-chrome

2019.7.10 • Public • Published

macOS Google Chrome.app scripts

Installation

$ [sudo] npm i -g mac-chrome

Config

export CHROME_TIMEOUT=10 # 5 by default 

Scripts usage

command usage
chrome usage: chrome command [args]
chrome-close usage: chrome-close url ...
chrome-frontmost usage: chrome-frontmost
chrome-fullscreen-detect usage: chrome-fullscreen-detect
chrome-fullscreen-enter usage: chrome-fullscreen-enter
chrome-fullscreen-exit usage: chrome-fullscreen-exit
chrome-isready usage: chrome-isready timeout
chrome-kill usage: chrome-kill
chrome-noisy-tabs usage: chrome-noisy-tabs
chrome-open usage: chrome-open url ...
chrome-pid usage: chrome-pid
chrome-refresh usage: chrome-refresh url ...
chrome-url usage: chrome-url
chrome-urls usage: chrome-urls

Examples

url(s)

$ chrome urls
https://github.com/
https://google.com/
$ chrome url
https://github.com/

open/refresh

$ chrome open "https://github.com/" "https://google.com/"
$ chrome refresh "https://github.com/"

fullscreen

$ chrome fullscreen-enter
$ chrome fullscreen-detect
1
$ chrome fullscreen-exit

frontmost (1 or 0)

$ chrome frontmost
0

Google Chrome.app process

$ chrome pid
42
$ chrome isready 5 # timeout 5 seconds 
1
$ chrome kill

python-readme-generator

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2019.7.101latest

Version History

VersionDownloads (Last 7 Days)Published
2019.7.101
2019.7.90
2019.7.60
2019.6.250
2019.6.240
2019.6.230
2019.6.110
2019.5.81
2019.5.61
2019.3.220
0.0.00

Package Sidebar

Install

npm i mac-chrome

Weekly Downloads

3

Version

2019.7.10

License

Unlicense

Unpacked Size

17.8 kB

Total Files

26

Last publish

Collaborators

  • russianidiot
  • andrewp-as-is