Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rednexie/ip-fastify
- Owner: Rednexie
- License: mit
- Created: 2024-01-15T19:03:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-17T15:09:59.000Z (10 months ago)
- Last Synced: 2024-01-17T17:11:09.312Z (10 months ago)
- Topics: api, ip, ip-address, ip-api, ipapi, ips, javascript, js, json, json-api, node-server, nodejs, server
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.