chalk-form

apply an array of chalk methods to a string


Keywords
apply, array, ansi, chalk, print, prettyprint
License
MIT
Install
npm install chalk-form@1.0.0

Documentation

chalk-form

apply an array of chalk methods to a string

Build Status

Install

npm install --save chalk-form

Usage

chalkForm returns a function which takes a string as an argument:

const str = chalkForm(['bold', 'italic', 'green'])('this is bold, italic, and green.');

License

MIT © Kevin Donahue