Basic IP API using node.js and express
express
cors
node:fs
/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" }
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
ip-express is licensed under MIT.