leeks.js

Simple ANSI styling for your terminal

Usage no npm install needed!

<script type="module">
  import leeksJs from 'https://cdn.skypack.dev/leeks.js';
</script>

README

leeks.js

Simple ANSI styling for your terminal

Features

  • Ultra lightweight (0 dependencies and small file size)
  • Chalk-like API
  • Supports 4-bit, 8-bit, full RGB, hex and CSS keywords
  • Automatic colour support detection with functions to manually disable/enable it
  • Set alias for colours and styles with leeks.alias()

Usage

See the documentation and example