Package Exports
- ipv6-normalize
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ipv6-normalize) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ipv6-normalize
$ npm i --save ipv6-normalizeExtract 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:🅰️1:2:3:4') === '2001:db8:0🅰️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)