node-cout/readme.md
2023-06-19 19:17:36 +02:00

23 lines
No EOL
553 B
Markdown

# COUT
This module allow you to make COUT and Debugs in NodeJS
## MJS or TypeScript
```js
import { cout as cc } from 'node-cout';
cout = new cc(0, true, true); // debugLevel, logs enabled (file), emojis enabled
cout.debug('test', 0) // console.log time and the string, if the number is >= to the debugLevel
cout.log('test')
cout.error('test')
cout.warn('test')
cout.info('test')
```
## CJS
use `await import("")`
```js
let { cout } = await import('node-cout'); // ti put in an async function
cout = new cout(); // from here equal to MJS example
```