@azu/style-format

Library to easily style texts with string formatting. It's based on ansi-codes and format-text

Usage no npm install needed!

<script type="module">
  import azuStyleFormat from 'https://cdn.skypack.dev/@azu/style-format';
</script>

README

style-format

Library to easily style texts with string formatting. It's based on ansi-codes and format-text

Install

$ npm install @azu/style-format

Usage

format('{blue} hello {green} world')
// => hello world

format('{bold}{red} span {yellow} eggs {reset}')
// => span eggs

Reference

See ansi-codes for reference.