8 Commits

Author SHA1 Message Date
bc61dc2f02 New version added v1.1.1 2019-04-09 19:49:35 +02:00
5030d9f693 Package updates 2019-04-09 19:48:21 +02:00
e874b44200 Merge pull request #2 from sylvaingirardbe/remove-npm-vulnerabilities
Update packages
2019-04-08 15:04:44 +02:00
f1c0c014da Update to current version of node 2019-03-06 16:08:22 +01:00
29e715897e Update packages 2019-03-06 16:00:12 +01:00
d302473da7 Merge branch 'develop' 2016-12-09 19:13:17 +01:00
77da84a261 Merge branch 'develop'
# Conflicts:
#	README.md
2016-05-03 14:55:40 +02:00
9669064662 readme.md fixed: removed nmcli 2016-04-12 17:25:00 +02:00
5 changed files with 1656 additions and 10 deletions

View File

@ -4,5 +4,5 @@ branches:
- master - master
- develop - develop
node_js: node_js:
- "4" - "10"
- "5" - "11"

View File

@ -27,6 +27,12 @@ It was tested with the following operating systems:
## Usage ## Usage
### Command Line
Run the script ```scan``` in the bin folder.
### Code
const scanner = require('node-wifi-scanner'); const scanner = require('node-wifi-scanner');
scanner.scan((err, networks) => { 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` * airport on Mac OS-X: `airport -s`
* netsh on Windows: `netsh wlan show networks mode=Bssid` * 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 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 generic way of parsing the data. If you experience any troubles, please create a GitHub issue and supply

View File

@ -3,7 +3,6 @@
* Created by kc on 04.04.16. * Created by kc on 04.04.16.
*/ */
const fs = require('fs');
const exec = require('child_process').exec; const exec = require('child_process').exec;
const async = require('async'); const async = require('async');
const _ = require('lodash'); const _ = require('lodash');

1640
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "node-wifi-scanner", "name": "node-wifi-scanner",
"version": "1.1.0", "version": "1.1.1",
"description": "node.js module for WiFi network detection", "description": "node.js module for WiFi network detection",
"main": "index.js", "main": "index.js",
"keywords": [ "keywords": [
@ -35,12 +35,12 @@
"test": "mocha test" "test": "mocha test"
}, },
"dependencies": { "dependencies": {
"async": "2.1.4", "async": "2.6.2",
"lodash": "4.17.2" "lodash": "^4.17.11"
}, },
"devDependencies": { "devDependencies": {
"grunt": "0.4.5", "grunt": "^1.0.3",
"grunt-bump": "0.7.0", "grunt-bump": "0.8.0",
"mocha": "2.2.5" "mocha": "^6.0.2"
} }
} }