Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honzahommer/ip2nfo
IP2 geolocation web server
https://github.com/honzahommer/ip2nfo
geoip-api geoip2 nodejs npm npm-package
Last synced: 2 days ago
JSON representation
IP2 geolocation web server
- Host: GitHub
- URL: https://github.com/honzahommer/ip2nfo
- Owner: honzahommer
- License: mit
- Created: 2019-04-09T20:14:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-18T11:43:21.000Z (about 2 months ago)
- Last Synced: 2024-09-18T16:37:34.656Z (about 2 months ago)
- Topics: geoip-api, geoip2, nodejs, npm, npm-package
- Language: JavaScript
- Homepage: https://ip2nfo.herokuapp.com
- Size: 39.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ip2nfo
[![npm version][npm-image]][npm-url]
[![npm download][downloads-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Greenkeeper badge](https://badges.greenkeeper.io/honzahommer/ip2nfo.svg)](https://greenkeeper.io/)> IP2 geolocation web server
## Install & Running
```bash
git clone https://github.com/honzahommer/ip2nfo.git
cd ip2nfo
npm install
npm start
```or
```bash
npm install -g ip2nfo
ip2nfo --port 3000
```or
```bash
const ip2nfo = require('ip2nfo');
ip2nfo.start(3000);
```## Tests
```bash
npm test
```## Endpoints
```bash
curl localhost:3000
curl localhost:3000/hostname
curl localhost:3000/1.1.1.1
curl localhost:3000/1.1.1.1/hostname
curl localhost:3000/8.8.8.8/distance/9.9.9.9
```## License
[MIT](LICENSE)
[npm-image]: https://img.shields.io/npm/v/ip2nfo.svg
[npm-url]: https://npmjs.org/package/ip2nfo
[travis-image]: https://img.shields.io/travis/honzahommer/ip2nfo/master.svg
[travis-url]: https://travis-ci.org/honzahommer/ip2nfo
[downloads-image]: https://img.shields.io/npm/dm/ip2nfo.svg