hello-chalk

0.0.1 • Public • Published

helloChalk

a lite version of chalk, copyed some code from https://github.com/chalk/chalk and https://github.com/Qix-/color-convert

Install

npm install hello-chalk

Usage

const chalk = require('hello-chalk');

console.log(chalk.bold(chalk.bgBlack(chalk.red('Hello world!'))));

console.log(chalk.bghex('#333F60')(chalk.hex('#fff000')('Hello world again!')));

// actually the '#' can be omitted

these are supported styles and colors

  // style
	reset
	bold
	dim
	italic
	underline
	inverse
	hidden
	strikethrough

	// front color
	black
	red
	green
	yellow
	blue
	magenta
	cyan
	white
	blackBright
	redBright
	greenBright
	yellowBright
	blueBright
	magentaBright
	cyanBright
	whiteBright

	// back color
	bgBlack
	bgRed
	bgGreen
	bgYellow
	bgBlue
	bgMagenta
	bgCyan
	bgWhite
	bgBlackBright
	bgRedBright
	bgGreenBright
	bgYellowBright
	bgBlueBright
	bgMagentaBright
	bgCyanBright
	bgWhiteBright

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i hello-chalk

      Weekly Downloads

      2

      Version

      0.0.1

      License

      MIT

      Unpacked Size

      3.96 kB

      Total Files

      4

      Last publish

      Collaborators

      • vzhufeng