2019.7.10 • Published 5 years ago

mac-brave v2019.7.10

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

npm.io npm.io

macOS Brave Browser.app scripts

Installation

$ [sudo] npm i -g mac-brave

Config

$ export BRAVE_TIMEOUT=10 # 5 by default

Scripts usage

commandusage
braveusage: brave command [args]
brave-closeusage: brave-close url ...
brave-frontmostusage: brave-frontmost
brave-fullscreen-detectusage: brave-fullscreen-detect
brave-fullscreen-enterusage: brave-fullscreen-enter
brave-fullscreen-exitusage: brave-fullscreen-exit
brave-isreadyusage: brave-isready timeout
brave-killusage: brave-kill
brave-noisy-tabsusage: brave-noisy-tabs
brave-openusage: brave-open url ...
brave-pidusage: brave-pid
brave-refreshusage: brave-refresh url ...
brave-urlusage: brave-url
brave-urlsusage: brave-urls

Examples

url(s)

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

open/refresh

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

fullscreen

$ brave fullscreen-enter
$ brave fullscreen-detect
1
$ brave fullscreen-exit

frontmost (1 or 0)

$ brave frontmost
0

Brave Browser.app process

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