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

https://github.com/bradjc/jsip

IP address parser and whatnot for javascript
https://github.com/bradjc/jsip

Last synced: 8 months ago
JSON representation

IP address parser and whatnot for javascript

Awesome Lists containing this project

README

          

jsIP
====

A class for parsing and formatting IPv4 and IPv6 addresses in javascript.

With node.js
------------

````
jsIP = require('jsIP');

ip = jsIP('192.168.1.1');

ip.str();
````

With a Browser
--------------

````

var jsIP = require('./jsIP');

jsIP('7654::6712:98:1').str();
````

API
---
````
str()
fullStr()
pureStr()
hex()