Output colorful logs, much like chalk but works for the browser.
- 🚀 Tiny < 1kB
- 💪🏻 Full typescript support
- 📦 No dependencies
- 🪢 Elegant chain calls
npm i craie
import craie from 'craie'
craie.log(craie.blue.bgRed.round('Message'))
<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); })();