BLUE
PHP 7.4.33
Path:
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/css-tree/cjs/utils
Run
Logout
Edit File
Size: 2.99 KB
Close
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/css-tree/cjs/utils/names.cjs
Text
Base64
'use strict'; const keywords = new Map(); const properties = new Map(); const HYPHENMINUS = 45; // '-'.charCodeAt() const keyword = getKeywordDescriptor; const property = getPropertyDescriptor; const vendorPrefix = getVendorPrefix; function isCustomProperty(str, offset) { offset = offset || 0; return str.length - offset >= 2 && str.charCodeAt(offset) === HYPHENMINUS && str.charCodeAt(offset + 1) === HYPHENMINUS; } function getVendorPrefix(str, offset) { offset = offset || 0; // verdor prefix should be at least 3 chars length if (str.length - offset >= 3) { // vendor prefix starts with hyper minus following non-hyper minus if (str.charCodeAt(offset) === HYPHENMINUS && str.charCodeAt(offset + 1) !== HYPHENMINUS) { // vendor prefix should contain a hyper minus at the ending const secondDashIndex = str.indexOf('-', offset + 2); if (secondDashIndex !== -1) { return str.substring(offset, secondDashIndex + 1); } } } return ''; } function getKeywordDescriptor(keyword) { if (keywords.has(keyword)) { return keywords.get(keyword); } const name = keyword.toLowerCase(); let descriptor = keywords.get(name); if (descriptor === undefined) { const custom = isCustomProperty(name, 0); const vendor = !custom ? getVendorPrefix(name, 0) : ''; descriptor = Object.freeze({ basename: name.substr(vendor.length), name, prefix: vendor, vendor, custom }); } keywords.set(keyword, descriptor); return descriptor; } function getPropertyDescriptor(property) { if (properties.has(property)) { return properties.get(property); } let name = property; let hack = property[0]; if (hack === '/') { hack = property[1] === '/' ? '//' : '/'; } else if (hack !== '_' && hack !== '*' && hack !== '$' && hack !== '#' && hack !== '+' && hack !== '&') { hack = ''; } const custom = isCustomProperty(name, hack.length); // re-use result when possible (the same as for lower case) if (!custom) { name = name.toLowerCase(); if (properties.has(name)) { const descriptor = properties.get(name); properties.set(property, descriptor); return descriptor; } } const vendor = !custom ? getVendorPrefix(name, hack.length) : ''; const prefix = name.substr(0, hack.length + vendor.length); const descriptor = Object.freeze({ basename: name.substr(prefix.length), name: name.substr(hack.length), hack, vendor, prefix, custom }); properties.set(property, descriptor); return descriptor; } exports.isCustomProperty = isCustomProperty; exports.keyword = keyword; exports.property = property; exports.vendorPrefix = vendorPrefix;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
clone.cjs
493 B
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
create-custom-error.cjs
532 B
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ident.cjs
3.44 KB
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.cjs
526 B
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
List.cjs
12.52 KB
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
names.cjs
2.99 KB
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
string.cjs
3.21 KB
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
url.cjs
3.29 KB
lrw-r--r--
2025-06-16 05:45:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).