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
- Host: GitHub
- URL: https://github.com/bradjc/jsip
- Owner: bradjc
- Created: 2012-04-02T01:10:36.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-02-02T21:13:59.000Z (over 12 years ago)
- Last Synced: 2025-02-04T23:01:38.130Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()