2019.7.10 • Published 5 years ago

mac-chrome v2019.7.10

Weekly downloads
6
License
Unlicense
Repository
-
Last release
5 years ago

npm.io npm.io

macOS Google Chrome.app scripts

Installation

$ [sudo] npm i -g mac-chrome

Config

$ export CHROME_TIMEOUT=10 # 5 by default

Scripts usage

commandusage
chromeusage: chrome command [args]
chrome-closeusage: chrome-close url ...
chrome-frontmostusage: chrome-frontmost
chrome-fullscreen-detectusage: chrome-fullscreen-detect
chrome-fullscreen-enterusage: chrome-fullscreen-enter
chrome-fullscreen-exitusage: chrome-fullscreen-exit
chrome-isreadyusage: chrome-isready timeout
chrome-killusage: chrome-kill
chrome-noisy-tabsusage: chrome-noisy-tabs
chrome-openusage: chrome-open url ...
chrome-pidusage: chrome-pid
chrome-refreshusage: chrome-refresh url ...
chrome-urlusage: chrome-url
chrome-urlsusage: 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
2019.7.10

5 years ago

2019.7.9

5 years ago

2019.7.6

5 years ago

2019.6.25

5 years ago

2019.6.24

5 years ago

2019.6.23

5 years ago

2019.6.11

5 years ago

2019.5.8

5 years ago

2019.5.6

5 years ago

2019.3.22

5 years ago

0.0.0

5 years ago