PageSourceSearch

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

js pika.page collected 2026-10-03 21:41:30 UTC 696 bytes, 9 lines download raw bytes

1// [email protected] downloaded from https://cdn.jsdelivr.net/npm/[email protected]/+esm
2
3/**
4 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1.
5 * Original file: /npm/[email protected]/index.js
6 *
7 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
8 */
9import e from"ip-regex";import{isMatch as n}from"super-regex";const f=15,i=45,r={timeout:400};function c(t){return t.length>i?!1:n(e({exact:!0}),t,r)}function o(t){return t.length>i?!1:n(e.v6({exact:!0}),t,r)}function u(t){return t.length>f?!1:n(e.v4({exact:!0}),t,r)}function a(t){if(o(t))return 6;if(u(t))return 4}export{a as ipVersion,c as isIP,u as isIPv4,o as isIPv6};

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.