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); })();