Socket
Socket
Sign inDemoInstall

node-wifi

Package Overview
Dependencies
20
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "node-wifi",
"version": "1.0.1",
"version": "1.0.2",
"description": "NodeJS tool to manage wifi",

@@ -5,0 +5,0 @@ "bin": {

@@ -9,10 +9,10 @@ var exec = require('child_process').exec;

var new_env = util._extend(process.env, { LANG: "en"});
var iface = 'en0';
var commandStr = "networksetup -setairportnetwork ";
if (config.iface) {
commandStr += config.iface.toString() + " '" +
ap.ssid + "' '" + ap.password + "'";
} else {
commandStr += "'en0' '" + ap.ssid + "' '" + ap.password;
iface = config.iface.toString();
}
commandStr = commandStr + "'" + iface + "'" + " " + "'" + ap.ssid + "'" + " " + "'" + ap.password + "'";
console.log(commandStr);

@@ -19,0 +19,0 @@ exec(commandStr, new_env, function(err, resp) {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc