1.1.1 • Published 5 years ago
@studiowebux/ip v1.1.1
Webux IP
This module retrieve the client IP within the req parameter
Installation
npm i --save webux-ip
Usage
const webuxIP = require('webux-ip');
const express = require('express');
const app = express();
app.get('/', (req, res) => {
return res.status(200).json({
msg: "Bonjour !",
ip: webuxIP(req)
});
});
app.listen(1337);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
SEE LICENSE IN license.txt