Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/kricsleo/craie
- Owner: kricsleo
- License: mit
- Created: 2022-10-14T09:38:02.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-19T05:59:25.000Z (over 1 year ago)
- Last Synced: 2024-09-17T01:07:23.293Z (about 2 months ago)
- Topics: browser, colorful, console, log
- Language: TypeScript
- Homepage:
- Size: 346 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
๐งถ craie
Output colorful logs, much like chalk but works for the browser.
## 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)