PHP 8.2.30
Preview: index.js Size: 271 B
/proc/thread-self/root/opt/alt/alt-nodejs16/root/lib/node_modules/npm/node_modules/is-cidr/index.js

"use strict";
const {v4, v6} = require("cidr-regex");

const re4 = v4({exact: true});
const re6 = v6({exact: true});

module.exports = str => re4.test(str) ? 4 : (re6.test(str) ? 6 : 0);
module.exports.v4 = str => re4.test(str);
module.exports.v6 = str => re6.test(str);

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
668 B lrw-r--r-- 2026-03-17 06:55:04
Edit Download
271 B lrw-r--r-- 2026-03-17 06:55:04
Edit Download
1.26 KB lrw-r--r-- 2026-03-17 06:55:04
Edit Download
889 B lrw-r--r-- 2026-03-17 06:55:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).