Linux srv25.usacloudserver.us 5.14.0-570.39.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 4 05:08:52 EDT 2025 x86_64
LiteSpeed
Server IP : 23.137.84.82 & Your IP : 216.73.216.127
Domains :
Cant Read [ /etc/named.conf ]
User : epicgamerzoneco
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
node_modules /
npm /
node_modules /
cli-columns /
Delete
Unzip
Name
Size
Permission
Date
Action
LICENSE
1.1
KB
-rw-r--r--
2023-08-08 22:32
color.js
403
B
-rw-r--r--
2023-08-08 22:32
index.js
1.59
KB
-rw-r--r--
2023-08-08 22:32
package.json
1.03
KB
-rw-r--r--
2023-08-08 22:32
test.js
2.16
KB
-rw-r--r--
2023-08-08 22:32
Save
Rename
'use strict'; const assert = require('assert'); const chalk = require('chalk'); const stripAnsi = require('strip-ansi'); const columns = require('./index.js'); const tests = []; function test(msg, fn) { tests.push([msg, fn]); } process.nextTick(async function run() { for (const [msg, fn] of tests) { try { await fn(assert); console.log(`pass - ${msg}`); } catch (error) { console.error(`fail - ${msg}`, error); process.exit(1); } } }); // prettier-ignore test('should print one column list', t => { const cols = columns(['foo', ['bar', 'baz'], ['bar', 'qux']], { width: 1 }); const expected = 'bar\n' + 'bar\n' + 'baz\n' + 'foo\n' + 'qux'; t.equal(cols, expected); }); // prettier-ignore test('should print three column list', t => { const cols = columns(['foo', ['bar', 'baz'], ['bat', 'qux']], { width: 16 }); const expected = 'bar baz qux \n' + 'bat foo '; t.equal(cols, expected); }); // prettier-ignore test('should print complex list', t => { const cols = columns( [ 'foo', 'bar', 'baz', chalk.cyan('嶜憃撊') + ' 噾噿嚁', 'blue' + chalk.bgBlue('berry'), chalk.red('apple'), 'pomegranate', 'durian', chalk.green('star fruit'), 'apricot', 'banana pineapple' ], { width: 80 } ); const expected = 'apple bar durian star fruit \n' + 'apricot baz foo 嶜憃撊 噾噿嚁 \n' + 'banana pineapple blueberry pomegranate '; t.equal(stripAnsi(cols), expected); }); // prettier-ignore test('should optionally not sort', t => { const cols = columns( [ 'foo', 'bar', 'baz', chalk.cyan('嶜憃撊') + ' 噾噿嚁', 'blue' + chalk.bgBlue('berry'), chalk.red('apple'), 'pomegranate', 'durian', chalk.green('star fruit'), 'apricot', 'banana pineapple' ], { sort: false, width: 80 } ); const expected = 'foo 嶜憃撊 噾噿嚁 pomegranate apricot \n' + 'bar blueberry durian banana pineapple \n' + 'baz apple star fruit '; t.equal(stripAnsi(cols), expected); });