chalk-web

make console.log colorful in browser

Usage no npm install needed!

<script type="module">
  import chalkWeb from 'https://cdn.skypack.dev/chalk-web';
</script>

README

使用说明

    var chalk = require('chalk-web');
    chalk('red','测试');
    chalk({
        'background-color':'blue',
        'color':'yellow',
        'font-size':'56px',
    },'必填-需要渲染样式的字符串','选填-需要展示的数据');

示例图片