node-wifiscanner
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -19,3 +19,3 @@ var exec = require('child_process').exec; | ||
'ssid' : lines[i].substr(0, colMac).trim(), | ||
// 'channel' : lines[i].substr(colChannel, colHt - colChannel).trim(), | ||
'channel' : lines[i].substr(colChannel, colHt - colChannel).trim(), | ||
'signal_level' : lines[i].substr(colRssi, colChannel - colRssi).trim(), | ||
@@ -41,1 +41,2 @@ 'security' : lines[i].substr(colSec).trim() | ||
exports.utility = macProvider; | ||
exports.parse = parseAirport; |
@@ -14,2 +14,3 @@ var exec = require('child_process').exec; | ||
'ssid' : /^ESSID:"(.*)"/, | ||
'channel': /^Channel:(.*)/, | ||
// 'protocol' : /^Protocol:(.*)/, | ||
@@ -16,0 +17,0 @@ // 'mode' : /^Mode:(.*)/, |
@@ -25,3 +25,3 @@ var fs = require('fs'); | ||
callback("No scanning utility found", null); | ||
callback(new Error("No scanning utility found"), null); | ||
}); | ||
@@ -28,0 +28,0 @@ }); |
{ | ||
"name" : "node-wifiscanner", | ||
"version" : "0.2.0", | ||
"description" : "Scan surrounding WiFi access points", | ||
"author": "Maurice Svay <maurice@svay.com>", | ||
"main": "./lib/wifiscanner", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://https://github.com/mauricesvay/node-wifiscanner.git" | ||
} | ||
"name": "node-wifiscanner", | ||
"version": "0.2.1", | ||
"description": "Scan surrounding WiFi access points", | ||
"author": "Maurice Svay <maurice@svay.com>", | ||
"main": "./lib/wifiscanner", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://https://github.com/mauricesvay/node-wifiscanner.git" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^2.2.5" | ||
}, | ||
"scripts": { | ||
"test": "mocha tests/*.js" | ||
} | ||
} |
11334
12
262
1
4