@tenryu/log-decorator
v1.0.5
Published
Decorate console.log()
Downloads
19
Readme
LogDecorator
ja / en
Easy decoration of your browser's console.log()
.
Usage
import { LogDecorator } from '@tenryu/log-decorator';
LogDecorator.log('text <red>red text</red> <green>green text</green>');
LogDecorator.group('text <red>red text</red> <green>green text</green>');
LogDecorator.groupEnd();
LogDecorator.groupCollapsed('text <red>red text</red> <green>green text</green>');
LogDecorator.groupEnd();
console.log(...LogDecorator('text <red>red text</red> <green>green text</green>'));
Tags
| tag | color |
| ----------- | ------------------------------------------------ |
| <green>
| text sample |
| <red>
| text sample |
| <magenta>
| text sample |
| <gray>
| text sample |