Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yosuke-furukawa/remote_address_parser

remote_address_parser
https://github.com/yosuke-furukawa/remote_address_parser

Last synced: about 1 month ago
JSON representation

remote_address_parser

Awesome Lists containing this project

README

        

Remote Address for JSX [![Build Status](https://travis-ci.org/yosuke-furukawa/remote_address_parser.svg?branch=master)](https://travis-ci.org/yosuke-furukawa/remote_address_parser)
=======================

client IP address parser for JSX

Getting Started
=======================

```shell
$ npm install remote_address_parser
```

For JS developers

```javascript
var RemoteAddressParser = require("remote_address_parser").RemoteAddressParser;
// require http/request
var ip = RemoteAddressParser.getAddress(request);
```

For JSX developers

```javascript
import "remote_address_parser/remote_address_parser.jsx";
// require http/request
var ip = RemoteAddressParser.getAddress(req);
```