ipv6-normalize
ipv6-normalize
Last updated 11 years ago by poying .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ipv6-normalize 
SYNC missed versions from official npm registry.

ipv6-normalize

$ npm i --save ipv6-normalize

Extract bestPresentation function from URI.js/src/IPv6.js into independent module.

'use strict';

var assert = require('assert');
var n = require('./');

assert(n('2001:db8:0:0:0:0:cafe:1111') === '2001:db8::cafe:1111');
assert(n('2001:db8::a:1:2:3:4') === '2001:db8:0:a:1:2:3:4');
assert(n('2001:0DB8:AAAA:0000:0000:0000:0000:000C') === '2001:db8:aaaa::c');
assert(n('2001:db8::1:0:0:0:4') === '2001:db8:0:1::4');

License

The MIT License (MIT)

http://poying.mit-license.org/

Current Tags

  • 1.0.1                                ...           latest (11 years ago)

2 Versions

  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |