geo-wifi
Advanced tools
Comparing version 1.0.0 to 1.0.1
13
index.js
@@ -7,4 +7,2 @@ 'use strict'; | ||
}); | ||
const chalk = require('chalk'); | ||
const figlet = require('figlet'); | ||
const inquirer = require('inquirer'); | ||
@@ -14,12 +12,2 @@ | ||
function displayHeader(ssid, location) { | ||
console.log( | ||
chalk.green( | ||
figlet.textSync('geo-wifi') | ||
) | ||
); | ||
console.log(`SSID: ${ssid}`); | ||
console.log(`Location:`, location); | ||
} | ||
/** | ||
@@ -87,3 +75,2 @@ * Divide SSID by letters and digits or letters or digits | ||
async function geoWifi(ssid, location) { | ||
displayHeader(ssid, location); | ||
// Substring of SSID to validate geographic location | ||
@@ -90,0 +77,0 @@ const {answer} = await askUserQueryFromSsid(ssid); |
{ | ||
"name": "geo-wifi", | ||
"version": "1.0.0", | ||
"description": "Check if Wi-Fi network is located in a reasonable geographic location.", | ||
"version": "1.0.1", | ||
"description": "Check if Wi-Fi network is located in a reasonable geographic location", | ||
"license": "MIT", | ||
@@ -32,5 +32,3 @@ "repository": "rodrigobdz/geo-wifi", | ||
"@google/maps": "^0.5.5", | ||
"chalk": "^2.4.2", | ||
"dotenv": "^7.0.0", | ||
"figlet": "^1.2.1", | ||
"inquirer": "^6.2.2" | ||
@@ -37,0 +35,0 @@ }, |
# geo-wifi [![Build Status](https://travis-ci.com/rodrigobdz/geo-wifi.svg?branch=master)](https://travis-ci.com/rodrigobdz/geo-wifi) | ||
> Check if Wi-Fi network is located in a reasonable geographic location. | ||
> Check if Wi-Fi network is located in a reasonable geographic location | ||
## Install | ||
``` | ||
```sh | ||
$ npm install geo-wifi | ||
``` | ||
## Usage | ||
@@ -23,3 +21,2 @@ | ||
## API | ||
@@ -41,5 +38,8 @@ | ||
## Credits | ||
* [generator-lnm](https://github.com/rodrigobdz/generator-lnm) - Awesome node module generator | ||
## License | ||
[MIT](license) © [Rodrigo Bermudez Schettino](https://github.com/rodrigobdz/geo-wifi) | ||
[MIT](license) © [Rodrigo Bermudez Schettino](https://rodrigobdz.github.io) |
Sorry, the diff of this file is not supported yet
6167
3
5
75
- Removedchalk@^2.4.2
- Removedfiglet@^1.2.1
- Removedfiglet@1.7.0(transitive)