REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 979 B
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@dabh/diagnostics/modifiers/namespace.js
Text
Base64
var colorspace = require('@so-ric/colorspace'); /** * Prefix the messages with a colored namespace. * * @param {Array} messages The messages array that is getting written. * @param {Object} options Options for diagnostics. * @returns {Array} Altered messages array. * @public */ module.exports = function colorNamespace(args, options) { var namespace = options.namespace; if (options.colors === false) { args[0] = namespace +': '+ args[0]; return args; } var color = colorspace(namespace); // // The console API supports a special %c formatter in browsers. This is used // to style console messages with any CSS styling, in our case we want to // use colorize the namespace for clarity. As these are formatters, and // we need to inject our CSS string as second messages argument so it // gets picked up correctly. // args[0] = '%c'+ namespace +':%c '+ args[0]; args.splice(1, 0, 'color:'+ color, 'color:inherit'); return args; };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
namespace-ansi.js
564 B
lrw-r--r--
2026-02-21 00:53:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
namespace.js
979 B
lrw-r--r--
2026-02-21 00:53:36
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).