diff --git a/package.json b/package.json index 750565e..0e84001 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-cout", - "version": "2023.06.19", + "version": "2023.06.19-1", "description": "Standard output module for JavaScript / TypeScript", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/readme.md b/readme.md index 9cb5e14..2d807fc 100644 --- a/readme.md +++ b/readme.md @@ -4,9 +4,9 @@ This module allow you to make COUT and Debugs in NodeJS ## MJS or TypeScript ```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.log('test') @@ -18,5 +18,6 @@ cout.info('test') ## CJS use `await import("")` ```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 ``` \ No newline at end of file