8000 GitHub - pen/airport-json: JSONize airport -I of macOS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pen/airport-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

airport-json

macOSのairport -IをJSONで出力する

使用例

$ export SSID=`airport-json | jq -r '.SSID'`
$ airport-json -b -m | jq -C | lv

オプション

  • -x : airport -Ixの結果をJSONで出力
  • -b : airport -Iairport -Ixの両方を実行
  • -m : JSONのトップレベルのキーの有無を切替

インストール

homebrew

$ brew install pen/tap/airport-json

go install

$ go install github.com/pen/airport-json/cmd/airport-json@latest

ダウンロード

Releases

注意

airport -Iの出力で、JSONのキーとして不便そうな項目名は以下の変換をしている:

airport airport-json
802.11 auth IEEE80211Auth
link auth linkAuth
op mode opMode

About

JSONize airport -I of macOS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0