Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rabinzon/hexlet-oop
oop workshop
https://github.com/rabinzon/hexlet-oop
Last synced: about 1 month ago
JSON representation
oop workshop
- Host: GitHub
- URL: https://github.com/rabinzon/hexlet-oop
- Owner: Rabinzon
- Created: 2019-02-15T13:35:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T07:43:38.000Z (almost 6 years ago)
- Last Synced: 2024-10-14T01:42:39.604Z (3 months ago)
- Language: JavaScript
- Size: 108 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## get-geo
Library that returns geo information about ip address from the service http://ip-api.com[![Build Status](https://travis-ci.org/Rabinzon/hexlet-oop.svg?branch=master)](https://travis-ci.org/Rabinzon/hexlet-oop)
## CL usage
```sh
$ get-geo [ip address]{
"as": "AS1586 DoD Network Information Center",
"city": "Sierra Vista",
"country": "United States",
"countryCode": "US",
"isp": "DoD Network Information Center",
"lat": 31.5552,
"lon": -110.35,
"org": "USAISC",
"query": "134.234.3.2",
"region": "AZ",
"regionName": "Arizona",
"status": "success",
"timezone": "America/Phoenix",
"zip": "85613"
}```
## Library usage
```js
import GeoData from 'GeoData';
const geoData = new GeoData();
await geoData.get(ip);
```## Setup
```sh
$ make install
$ make build
$ npm ln
```## Run tests
```sh
$ make test
```