REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 770 B
Close
/home/byroehnu/.trash/node_modules11/enabled/index.js
Text
Base64
'use strict'; /** * Checks if a given namespace is allowed by the given variable. * * @param {String} name namespace that should be included. * @param {String} variable Value that needs to be tested. * @returns {Boolean} Indication if namespace is enabled. * @public */ module.exports = function enabled(name, variable) { if (!variable) return false; var variables = variable.split(/[\s,]+/) , i = 0; for (; i < variables.length; i++) { variable = variables[i].replace('*', '.*?'); if ('-' === variable.charAt(0)) { if ((new RegExp('^'+ variable.substr(1) +'$')).test(name)) { return false; } continue; } if ((new RegExp('^'+ variable +'$')).test(name)) { return true; } } return false; };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.travis.yml
167 B
lrw-r--r--
2026-02-21 00:53:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
770 B
lrw-r--r--
2026-02-21 00:53:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.09 KB
lrw-r--r--
2026-02-21 00:53:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
787 B
lrw-r--r--
2026-02-21 00:53:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.74 KB
lrw-r--r--
2026-02-21 00:53:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test.js
1.24 KB
lrw-r--r--
2026-02-21 00:53:28
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).