JSPM

@azu/style-format

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 403701
  • Score
    100M100P100Q185829F
  • License WTFPL

Library to easily style texts with string formatting

Package Exports

  • @azu/style-format

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@azu/style-format) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.