2023.06.19-1
This commit is contained in:
parent
076185d889
commit
0defd1949b
2 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "node-cout",
|
"name": "node-cout",
|
||||||
"version": "2023.06.19",
|
"version": "2023.06.19-1",
|
||||||
"description": "Standard output module for JavaScript / TypeScript",
|
"description": "Standard output module for JavaScript / TypeScript",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"types": "build/index.d.ts",
|
"types": "build/index.d.ts",
|
||||||
|
|
|
@ -4,9 +4,9 @@ This module allow you to make COUT and Debugs in NodeJS
|
||||||
|
|
||||||
## MJS or TypeScript
|
## MJS or TypeScript
|
||||||
```js
|
```js
|
||||||
import { cout } from 'node-cout';
|
import { cout as cc } from 'node-cout';
|
||||||
|
|
||||||
cout = new cout(0, true, true); // debugLevel, logs enabled (file), emojis enabled
|
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.debug('test', 0) // console.log time and the string, if the number is >= to the debugLevel
|
||||||
cout.log('test')
|
cout.log('test')
|
||||||
|
@ -18,5 +18,6 @@ cout.info('test')
|
||||||
## CJS
|
## CJS
|
||||||
use `await import("")`
|
use `await import("")`
|
||||||
```js
|
```js
|
||||||
let { cout } = await import('node-cout');
|
let { cout } = await import('node-cout'); // ti put in an async function
|
||||||
|
cout = new cout(); // from here equal to MJS example
|
||||||
```
|
```
|
Loading…
Reference in a new issue