Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rednexie/ip-express

Basic IP API using node.js
https://github.com/rednexie/ip-express

api ip ip-address ip-api ipapi ips javascript js json json-api node-server nodejs server

Last synced: about 2 months ago
JSON representation

Basic IP API using node.js

Awesome Lists containing this project

README

        

# ip-express
Basic IP API using node.js and express
### Dependencies
- `express`
- `cors`
- `node:fs`
### Endpoints
/ip => ip as text: 0.0.0.0

/ips => ips as json ["0.0.0.0", "127.0.0.1"]

/text => ip as text

/json => ip as json: `{ "ip": "0.0.0.0" }`

/json/:id => ip as json: ` { "$id": "0.0.0.0" }`

### Configuration
log: whether to save the requests to a text file. default is `true`

port: the http port to start the webserver and listen on. default is `3000`

### License
ip-express is licensed under MIT.