Skip to content

Rednexie/ip-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.