osx-wifi-cli
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -19,2 +19,3 @@ #!/usr/bin/env node | ||
.option('scan', 'show available networks') | ||
.option('--device <device>', 'set device (default is en0)') //see ugly todo below. | ||
.parse(process.argv); | ||
@@ -26,2 +27,10 @@ | ||
//This is very ugly!! TODO: check how to combine flags and "commands" properly. maybe use 'npm i cli'. | ||
if (cli.device) { | ||
Object.keys(utils).forEach(function(key) { | ||
if (typeof utils[key] == 'string') utils[key] = utils[key].replace('en0', cli.device); | ||
}) | ||
args.splice(args.indexOf('--device'),2) | ||
} | ||
if (args[0] == 'on') execute(utils.on); //cli.on is a function | ||
@@ -75,2 +84,1 @@ else if (cli.off) execute(utils.off); | ||
} | ||
{ | ||
"name": "osx-wifi-cli", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A command line tool for managing wifi connection in osx", | ||
@@ -5,0 +5,0 @@ "keywords": ["osx", "wifi", "cli", "mac", "wireless", "network"], |
## osx-wifi-cli | ||
### A command line tool for managing wifi connection on OSX | ||
### A command line tool for managing wifi connections on OSX | ||
@@ -16,3 +16,3 @@ * * * | ||
`osx-wifi-cli on`, `osx-wifi-cli off`, and `osx-wifi-cli restart` controls the wifi device state. | ||
`osx-wifi-cli on`, `osx-wifi-cli off`, and `osx-wifi-cli restart` control the wifi device state. | ||
@@ -28,2 +28,7 @@ `osx-wifi-cli NETWORK PASSWORD` tries to connects to NETWORK with PASSWORD. | ||
* * * | ||
#### TODOs | ||
* Enable connection to a network without a password. (Should currently be possible with `" "`) | ||
* Enable picking a network by a numeric id | ||
* * * | ||
#### Feedback | ||
@@ -33,2 +38,1 @@ * If you enjoyed this tool, please star it on Github! | ||
* More material appreciation is welcome in the form of bitcoins. My address can be found on [this page](http://danyshaanan.com/bitcoin). | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8092
7
116
36
1