PageSourceSearch

https://pika.page/assets/is-ip-d1c98e102b85519c45fc7e87f32f636d453974b248c1be09490d4805d810350f.js

js pika.page collected 2026-09-25 18:55:22 UTC 463 bytes, 4 lines download raw bytes

1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/index.js
2
3import i from"ip-regex";import{isMatch as e}from"super-regex";const t=15;const r=45;const n={timeout:400};function isIP(t){return e(i({exact:true}),t.slice(0,r),n)}function isIPv6(t){return e(i.v6({exact:true}),t.slice(0,r),n)}function isIPv4(r){return e(i.v4({exact:true}),r.slice(0,t),n)}function ipVersion(i){return isIP(i)?isIPv6(i)?6:4:void 0}export{ipVersion,isIP,isIPv4,isIPv6};
4

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.