Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
@npmcli /
disparity-colors /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
1018
B
-rw-r--r--
2023-11-23 07:39
Save
Rename
const ansi = require('ansi-styles') const colors = { removed: ansi.red, added: ansi.green, header: ansi.yellow, section: ansi.magenta, } function colorize (str, opts) { let headerLength = (opts || {}).headerLength if (typeof headerLength !== 'number' || Number.isNaN(headerLength)) { headerLength = 2 } const color = (colorStr, colorId) => { const { open, close } = colors[colorId] // avoid highlighting the "\n" (would highlight till the end of the line) return colorStr.replace(/[^\n\r]+/g, open + '$&' + close) } // this RegExp will include all the `\n` chars into the lines, easier to join const lines = ((typeof str === 'string' && str) || '').split(/^/m) const start = color(lines.slice(0, headerLength).join(''), 'header') const end = lines.slice(headerLength).join('') .replace(/^-.*/gm, color('$&', 'removed')) .replace(/^\+.*/gm, color('$&', 'added')) .replace(/^@@.+@@/gm, color('$&', 'section')) return start + end } module.exports = colorize