Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
bc61dc2f02 | |||
5030d9f693 | |||
e874b44200 | |||
f1c0c014da | |||
29e715897e | |||
d302473da7 | |||
77da84a261 | |||
9669064662 |
@ -4,5 +4,5 @@ branches:
|
||||
- master
|
||||
- develop
|
||||
node_js:
|
||||
- "4"
|
||||
- "5"
|
||||
- "10"
|
||||
- "11"
|
||||
|
@ -27,6 +27,12 @@ It was tested with the following operating systems:
|
||||
|
||||
## Usage
|
||||
|
||||
### Command Line
|
||||
|
||||
Run the script ```scan``` in the bin folder.
|
||||
|
||||
### Code
|
||||
|
||||
const scanner = require('node-wifi-scanner');
|
||||
|
||||
scanner.scan((err, networks) => {
|
||||
@ -53,7 +59,8 @@ The module uses command line tools for gathering the network information:
|
||||
|
||||
* airport on Mac OS-X: `airport -s`
|
||||
* netsh on Windows: `netsh wlan show networks mode=Bssid`
|
||||
* iwlist (1st choice) on Linux: `iwlist scan`
|
||||
* iwlist on Linux: `iwlist scan`
|
||||
|
||||
|
||||
Unfortunately, Mac OS-X and Windows use the system language for the output which requires a quite
|
||||
generic way of parsing the data. If you experience any troubles, please create a GitHub issue and supply
|
||||
|
1
index.js
1
index.js
@ -3,7 +3,6 @@
|
||||
* Created by kc on 04.04.16.
|
||||
*/
|
||||
|
||||
const fs = require('fs');
|
||||
const exec = require('child_process').exec;
|
||||
const async = require('async');
|
||||
const _ = require('lodash');
|
||||
|
1640
package-lock.json
generated
Normal file
1640
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-wifi-scanner",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "node.js module for WiFi network detection",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@ -35,12 +35,12 @@
|
||||
"test": "mocha test"
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "2.1.4",
|
||||
"lodash": "4.17.2"
|
||||
"async": "2.6.2",
|
||||
"lodash": "^4.17.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "0.4.5",
|
||||
"grunt-bump": "0.7.0",
|
||||
"mocha": "2.2.5"
|
||||
"grunt": "^1.0.3",
|
||||
"grunt-bump": "0.8.0",
|
||||
"mocha": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user