wifi-network
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -1,1 +0,21 @@ | ||
module.exports = require( 'bindings' )( 'wifi.node' ) | ||
var wifi = module.exports = require( 'bindings' )( 'wifi.node' ) | ||
// Channel band | ||
wifi.BAND_UNKNOWN = 0 | ||
wifi.BAND_2GHZ = 2 | ||
wifi.BAND_5GHZ = 5 | ||
// Channel width | ||
wifi.WIDTH_UNKNOWN = 0 | ||
wifi.WIDTH_20MHZ = 1 | ||
wifi.WIDTH_40MHZ = 2 | ||
wifi.WIDTH_80MHZ = 3 | ||
wifi.WIDTH_160MHZ = 4 | ||
// Physical Layer (PHY) Modes | ||
wifi.MODE_NONE = 0 | ||
wifi.MODE_11A = 1 | ||
wifi.MODE_11B = 2 | ||
wifi.MODE_11G = 3 | ||
wifi.MODE_11N = 4 | ||
wifi.MODE_11AC = 5 |
{ | ||
"name": "wifi-network", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Cross-platform wireless network control", | ||
@@ -43,4 +43,5 @@ "license": "MIT", | ||
"install": "prebuild-install || node-gyp rebuild", | ||
"test": "mocha" | ||
"lint": "cpplint --recursive src", | ||
"test": "npm run lint && mocha" | ||
} | ||
} |
# WiFi-Network | ||
[![npm](https://img.shields.io/npm/v/wifi-network.svg?style=flat-square)](https://npmjs.com/package/wifi-network) | ||
[![stability](https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square)](https://nodejs.org/api/documentation.html#documentation_stability_index) | ||
[![npm license](https://img.shields.io/npm/l/wifi-network.svg?style=flat-square)](https://npmjs.com/package/wifi-network) | ||
@@ -15,2 +16,8 @@ [![npm downloads](https://img.shields.io/npm/dm/wifi-network.svg?style=flat-square)](https://npmjs.com/package/wifi-network) | ||
## Supported Platforms | ||
- [x] Mac OS | ||
- [ ] Windows | ||
- [ ] Linux | ||
## Usage | ||
@@ -37,7 +44,7 @@ | ||
beaconInterval: 100, | ||
noise: -87, | ||
rssi: -48, | ||
noise: -88, | ||
rssi: -52, | ||
channelNumber: 1, | ||
channelBand: 1, | ||
channelWidth: 1 | ||
channelBand: 2, | ||
channelWidth: 20, | ||
}, | ||
@@ -47,1 +54,16 @@ ... | ||
``` | ||
## Contributing | ||
### Auxiliary Dependencies | ||
- [cpplint](https://github.com/cpplint/cpplint) | ||
``` | ||
$ pip install cpplint | ||
``` | ||
## References | ||
- [Apple / CoreWLAN](https://developer.apple.com/reference/corewlan) | ||
- [Microsoft / Native Wifi API](https://msdn.microsoft.com/en-us/library/ms706556(VS.85).aspx) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
9728
18
67
1