{"_id":"@curaelabs/node-wifi-scanner","_rev":"2-9c95965933fc6bd62d687c7c8c737dd2","name":"@curaelabs/node-wifi-scanner","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@curaelabs/node-wifi-scanner","version":"0.0.1","description":"node.js module for WiFi network detection, based of of Christian Kuster's `node-wifi-scanner`. This has `npm` vulnerabilities removed and the latest version pubished.","main":"index.js","keywords":["WiFi","Node.js","scanner","airport","netsh","iwlist","nmcli"],"author":{"name":"Sylvain Girard","email":"sylvain@curaelabs.eu","url":"https://www.curaelabs.com"},"homepage":"https://github.com/sylvaingirardbe/node-wifi-scanner","bugs":{"url":"https://github.com/sylvaingirardbe/node-wifi-scanner/issues","email":"sylvain@curaelabs.eu"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/sylvaingirardbe/node-wifi-scanner.git"},"engines":{"node":">= 4.0.0","npm":">= 2.0.0"},"scripts":{"test":"mocha test"},"dependencies":{"async":"2.1.4","lodash":"^4.17.11"},"devDependencies":{"grunt":"^1.0.3","grunt-bump":"0.7.0","mocha":"^6.0.2"},"gitHead":"a1fb6ce7429e310d8ce192fb842d9f7eef73086c","_id":"@curaelabs/node-wifi-scanner@0.0.1","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","dist":{"integrity":"sha512-wU6ulKyM0d8+8/vbn9cIda7p+tvtXu9s7tiGTd8KIDgF0Lwm4G/kj9ZQ82v29j3oL239R74t6kSW8j9GRWzGDw==","shasum":"a4f9debc7175b603a21ebef16e04a98fa5183180","tarball":"https://registry.npmjs.org/@curaelabs/node-wifi-scanner/-/node-wifi-scanner-0.0.1.tgz","fileCount":21,"unpackedSize":145328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJciRKZCRA9TVsSAnZWagAArnsQAIktkgnoUZTsPfb2zZJ5\n2UhtMEsKG+X+0BTnzWSmZDJpJAO3jir1xmf1DcjBdrMPErmrt8vT/pgAyfil\nSD05JtGJpAVmHgIp9qSuqwzd3iV4CTNPrxfCxzzGtPpnhnULqoQfw4Evst6A\na4kcnEpGPma4e7hAgBJBjeJi1NxR+E94u//0sasrS+QNA533yoZScuincu/2\nvdYysAB5pa4LGRzlPwcHIfZKQCfB/Vc5zR1M5iS6Qeoex9VdZ+GxgDBpY9pC\no/7/LURdKhX3lIlxEGiLgxuTovepkJABr8+UblwTfrVJV9WpWppwsZ/FbO8o\nXKUBysS7upaVcDWM+cfjyy1dWZ7/Y9JP7Xx/qttgiCjL3hpkyNCsKiWc2lGo\n6StDzHuDoC3bvmsD0BGE024LlNU3E4VjHOnxrYRnc/9sVzpJdbtDoJ+pxZUA\nvc5LQ3LNVMVNd1q/JOWkwiAkcSmhBZKFudzac3Fs+y961OoYGJa9TBmcdllF\navPoPcepBp7uvkG+DEosR2vzyQercR1Wau5mbz8Co+yUaQ0GLcW6j3+hWUvy\n0hmrmoFzNSTxH85MuVEJO9PucAK/flqrzRFSrHSF0Uzz1bYlAsFVX7xMBjEu\nuB3nbBDqEUHdYgTFtxjp/ckgrhWSO4JMMPK8wJrWrtJR39LldvS6Fmf+91P8\ns3yo\r\n=xlws\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDk4EzEyuy3dvZoYmdQfFiCTBPamwmSuuEvi8SubLc7XQIhAOFTNd8U7s2U+zngzvIJJ/VfCEPDWzuAcWbcKW36AP6f"}]},"maintainers":[{"name":"curaelabs","email":"sylvain@curaelabs.eu"}],"_npmUser":{"name":"curaelabs","email":"sylvain@curaelabs.eu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-wifi-scanner_0.0.1_1552487064759_0.9999739043421583"},"_hasShrinkwrap":false},"0.0.2":{"name":"@curaelabs/node-wifi-scanner","version":"0.0.2","description":"node.js module for WiFi network detection, based of of Christian Kuster's `node-wifi-scanner`. This has `npm` vulnerabilities removed and the latest version pubished.","main":"index.js","keywords":["WiFi","Node.js","scanner","airport","netsh","iwlist","nmcli"],"author":{"name":"Sylvain Girard","email":"sylvain@curaelabs.eu","url":"https://www.curaelabs.com"},"homepage":"https://github.com/sylvaingirardbe/node-wifi-scanner","bugs":{"url":"https://github.com/sylvaingirardbe/node-wifi-scanner/issues","email":"sylvain@curaelabs.eu"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/sylvaingirardbe/node-wifi-scanner.git"},"engines":{"node":">= 4.0.0","npm":">= 2.0.0"},"scripts":{"test":"mocha test"},"dependencies":{"async":"2.1.4","lodash":"^4.17.11"},"devDependencies":{"grunt":"^1.0.3","grunt-bump":"0.7.0","mocha":"^6.0.2"},"gitHead":"79315d07d32b2ecaf4deee6f9f2ff47699ce621b","_id":"@curaelabs/node-wifi-scanner@0.0.2","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","dist":{"integrity":"sha512-1AP4GDWY3L+Bv71mWDfiIn5NB+Oyr9E4atf8DsDkSHv0K19iOuuv2YmEhE8I8wp6SUrkUeia/QylTBEtpN0KWQ==","shasum":"8bc72daf1c17d03dcca1566e918e12fc7e37fc80","tarball":"https://registry.npmjs.org/@curaelabs/node-wifi-scanner/-/node-wifi-scanner-0.0.2.tgz","fileCount":21,"unpackedSize":145622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJci3I2CRA9TVsSAnZWagAAiDEP/A1kdm5+uj1DALMGqZgF\naBIBVa7o2IpqnA16l8kWqSSs/RlvskJW3z4DEPc4b+NcweecUAbTpD+RQZ1m\nwo6zYnREYJyxpXg7nycwWK+0SN5FSUFCR8I1VOw8orK1sA1JeK7O+5IWk9G6\nOx187aIFu5+6DtxbIuzLK0PFSFr0M5O9c79S8iVsdG3i7uNZYAcQJq5HW0FQ\npr5076Pb4OGBdTNrfjWgVY11icNtsF+XKoY/qYo1jlNc4nl7Lwy0f9fxTJBf\n6U4H5HEVuHfjcTQ3qd7jG7bmKU/eLp5GoByqOoLU8QraeqZB0PmATQn6uZ+K\njvuvLvU20MpXbjp55C0glPX6bSaXbcJ5ERbFttwD5ZMyzcR3udTQaTECpm9j\nMe7suYAyxUdjn5sl2xca0y0bJgSQT2YwORnyoh1tDuthBLAhIfRteBZkAIs/\nLO8Z+h+pYdagZZAgbuF70AdB9N3fPEUlPrW65gRBE7iGjtCsSTcnS87hOSRw\n7zp0tlLIZtXlMICzuz66MvvEuuq9MvmsQ+KOKuNAVxAh8PNgHE+NVm/Ncdbn\n1jUyXgGlKavcdONLPkBG8rKDObylYmDheK2OoFe+ITLvuEZYZZuLkdHqAkzh\nq8EZkTYiIgpsnb2VryiXFuvE7bKSbo4nqDQj+8lDNXE4gmRVH1CZdwnrXCAN\n7nq5\r\n=xXaU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9NXExH9FupJX3G8ruKdfPBhKAm4sZDPe/53JgbzqzSgIgValt1bpzj9qoeix4th0QltM2CYef7TH8S5UaofVG5t4="}]},"maintainers":[{"name":"curaelabs","email":"sylvain@curaelabs.eu"}],"_npmUser":{"name":"curaelabs","email":"sylvain@curaelabs.eu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-wifi-scanner_0.0.2_1552642613691_0.13425581794901809"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-13T14:24:24.758Z","0.0.1":"2019-03-13T14:24:24.891Z","modified":"2022-04-05T02:12:38.599Z","0.0.2":"2019-03-15T09:36:53.795Z"},"maintainers":[{"name":"curaelabs","email":"sylvain@curaelabs.eu"}],"description":"node.js module for WiFi network detection, based of of Christian Kuster's `node-wifi-scanner`. This has `npm` vulnerabilities removed and the latest version pubished.","homepage":"https://github.com/sylvaingirardbe/node-wifi-scanner","keywords":["WiFi","Node.js","scanner","airport","netsh","iwlist","nmcli"],"repository":{"type":"git","url":"git+https://github.com/sylvaingirardbe/node-wifi-scanner.git"},"author":{"name":"Sylvain Girard","email":"sylvain@curaelabs.eu","url":"https://www.curaelabs.com"},"bugs":{"url":"https://github.com/sylvaingirardbe/node-wifi-scanner/issues","email":"sylvain@curaelabs.eu"},"license":"MIT","readme":"#node-wifi-scanner\n\n[![Build Status](https://travis-ci.org/sylvaingirardbe/node-wifi-scanner.svg?branch=master)](https://travis-ci.org/sylvaingirardbe/node-wifi-scanner)\n[![npm](https://img.shields.io/npm/v/@curaelabs/node-wifi-scanner.svg)](https://www.npmjs.com/package/@curaelabs/node-wifi-scanner)\n[![npm](https://img.shields.io/npm/dt/@curaelabs/node-wifi-scanner.svg)](https://www.npmjs.com/package/@curaelabs/node-wifi-scanner)\n\nThis package is based on Christian Kuster's `node-wifi-scanner` but with updated dependencies to remove vulnerabilities and it has his latest version published to `npm` which adds better support for Raspbian.\n\nThis module for node.js scans available wifi networks. The main purpose was to enhance my node.js based\n[ZigBee Site Survey Tool](http://ancasicolica.github.io/ZigBeeSiteSurvey/) with WiFi coexistence charts. This tool\nclaims to be compatible with current versions of Mac OS-X, Windows and Linux so I'll fix bugs as fast as possible.\nFeature extensions on the other hand are not planned.\n\nThe module was inspired from Maurice Sways \"[node-wifiscanner](https://github.com/mauricesvay/node-wifiscanner)\". I didn't use node-wifiscanner because I\nhad to handle much more complex network environments and also wanted to be independent of the operating\nsystem language. The adaptions needed would have been too comprehensive for a pull request so I decided to write an own module.\n\n## Operating Systems\n\nIt was tested with the following operating systems:\n* Mac OS-X\n* Raspbian \"Stretch\"\n\n## Installation\n\n    npm i @curaelabs/node-wifi-scanner\n\n## Usage\n\n    const scanner = require('@curaelabs/node-wifi-scanner');\n\n    scanner.scan((err, networks) => {\n      if (err) {\n        console.error(err);\n        return;\n      }\n      console.log(networks);\n    });\n\nThe tool returns an array with objects, each object representing a network with the following properties:\n\n* channel: WiFi channel\n* ssid: SSID of the network (if available)\n* mac: MAC Address of the network access point\n* rssi: signal strength\n\nIn contrary to other wifi scanners no information about security is returned. This is due to the very different implementation\nof the command line tools which do not allow a flawless detection.\n\n## Technical background\n\nThe module uses command line tools for gathering the network information:\n\n* airport on Mac OS-X: `airport -s`\n* netsh on Windows: `netsh wlan show networks mode=Bssid`\n* iwlist on Linux: `iwlist scan`\n\n\nUnfortunately, Mac OS-X and Windows use the system language for the output which requires a quite\ngeneric way of parsing the data. If you experience any troubles, please create a GitHub issue and supply\nthe output of the tool.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2019 Sylvain Girard\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","readmeFilename":"README.md"}