{"repo":"chalk/chalk-template","free":true,"listed":false,"github":"https://github.com/chalk/chalk-template","clone":"git clone https://github.com/chalk/chalk-template.git","description":null,"language":"JavaScript","stars":98,"topics":["chalk","color","terminal","ansi-escape-codes","command-line","templating"],"license":"MIT","category":"cli-tools","readme_excerpt":"chalk-template Terminal string styling with tagged template literals Install Usage For printing to standard output (stdout): For printing to standard error (stderr): API Blocks are delimited by an opening curly brace ( { ), a style, some content, and a closing curly brace ( } ). Template styles are chained exactly like normal Chalk styles. The following two statements are equivalent: Note that function styles ( rgb() , etc.) may not contain spaces between parameters. All interpolated values ( chalkTemplate ${foo} ) are converted to strings via the .toString() method. All curly braces ( { and } ) in interpolated value strings are escaped. Template function This function can be useful if you need to wrap the template function. However, prefer the default export whenever possible. Note: It's up to you to properly escape the input. Create template functions using a custom Chalk instance The makeTemplate and makeTaggedTemplate functions are exported so functions can be created using a custom Chalk instance. Note: When using a function created with makeTemplate , it's up to you to properly escape the input. Related - chalk - Terminal string styling done right - chalk-cli - Style text from the terminal Maintainers - Sindre Sorhus - Josh Junon","default_branch":null,"files":null,"tree":[],"storefront":"/r/chalk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chalk/chalk-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}