From fe12da748a42c0577de7a551ed98a05ff820c3cc Mon Sep 17 00:00:00 2001 From: killerboss Date: Sat, 8 Jul 2023 16:22:05 +0200 Subject: [PATCH] changelogs --- readme.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 2d807fc..59f8dbd 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 as cc } from 'node-cout'; +import cc from 'node-cout'; -cout = new cc(0, true, true); // debugLevel, logs enabled (file), emojis enabled +const 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,6 +18,12 @@ 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 -``` \ No newline at end of file +const { default } = await import('node-cout'); // ti put in an async function +const cout = new default(); // from here equal to MJS example +``` + +## Changelogs +### v2023.07.08 +- Exported the main class as default +- Add Stringify to all functions +- Changed the string type in the function to "any"