File: color.js

package info (click to toggle)
npm 9.2.0~ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 318,988 kB
  • sloc: javascript: 167,820; sh: 194; makefile: 52; perl: 11
file content (16 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const chalk = require('chalk');
const columns = require('.');

// prettier-ignore
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('');