From 0defd1949b692b3681d2b33d564909af46872b75 Mon Sep 17 00:00:00 2001 From: killerboss Date: Mon, 19 Jun 2023 19:17:36 +0200 Subject: [PATCH] 2023.06.19-1 --- package.json | 2 +- readme.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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