Skip to content
/ craie Public

🧶 Colorful log for the browser, like the Chalk.

License

Notifications You must be signed in to change notification settings

kricsleo/craie

Repository files navigation

🧶 craie

Output colorful logs, much like chalk but works for the browser.


preview

Features

  • 🚀 Tiny < 1kB
  • 💪🏻 Full typescript support
  • 📦 No dependencies
  • 🪢 Elegant chain calls

Usage

NPM

npm i craie
import craie from 'craie'

craie.log(craie.blue.bgRed.round('Message'))

CDN

<script src="
  https://cdn.jsdelivr.net/npm/craie/dist/index.global.min.js
"></script>

Or try it now!

Execute the script below on browser address bar, then use the global craie as you want.

javascript:(function () { var script = document.createElement('script'); script.src="https://cdn.jsdelivr.net/npm/craie/dist/index.global.min.js"; document.body.appendChild(script); })();

License

MIT License © 2023 Kricsleo