Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kricsleo/craie

๐Ÿงถ Colorful log for the browser, like the Chalk.
https://github.com/kricsleo/craie

browser colorful console log

Last synced: 24 days ago
JSON representation

๐Ÿงถ Colorful log for the browser, like the Chalk.

Awesome Lists containing this project

README

        

๐Ÿงถ 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

```bash
npm i craie
```

```ts
import craie from 'craie'

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

### CDN

```html

```

Or try it now!

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

```js
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) License ยฉ 2023 [Kricsleo](https://github.com/kricsleo)