Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

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

Last synced: 11 days ago
JSON representation

Basic IP API using node.js

Awesome Lists containing this project

README

        

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

/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-fastify is licensed under MIT.