Skip to content

Karibash/node-access-route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-access-route

Parse the http header to determine the client's IP address.

👏 Getting Started

The basic usage is as follows:

import express from 'express';
import accessRoute from '@karibash/node-access-route';

const app = express();
const port = 3000;

app.get('/', (request, response) => {
  response.json(accessRoute(request));
});

app.listen(port, () => {
  console.log(`Example app listening at http://127.0.0.1:${port}`);
});

🚀 Installation

$ npm install @karibash/node-access-route

🤝 Contributing

Contributions, issues and feature requests are welcome.

Feel free to check issues page if you want to contribute.

📝 License

Copyright © 2020 @Karibash.

This project is MIT licensed.