Welcome to mirror list, hosted at ThFree Co, Russian Federation.

color.js « cli-columns « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82c1bef5f8735c1f1a106de264ffe324a53b0113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const chalk = require('chalk');
const columns = require('.');

const values = [
	'blue' + chalk.bgBlue('berry'),
	'笔菠萝' + chalk.yellow('苹果笔'),
	chalk.red('apple'), 'pomegranate',
	'durian', chalk.green('star fruit'),
	'パイナップル', 'apricot', 'banana',
	'pineapple', chalk.bgRed.yellow('orange')
];

console.log('');
console.log(columns(values));
console.log('');