Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osx-wifi-cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osx-wifi-cli - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

npm-shrinkwrap.json

10

osx-wifi-cli.js

@@ -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);

}

2

package.json
{
"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).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc