From e82ad751573f7cb8ef0aa415a9d68a6b4fc27160 Mon Sep 17 00:00:00 2001 From: Tanmoy Sen Gupta Date: Fri, 17 Jun 2022 19:14:56 +0530 Subject: [PATCH] Revert "JS Helper Library - Init #39" This reverts commit ddbae0bfeca0153c970c58539a9ecf1e982795ee. --- libraries/js/logsmith.js | 19 ------------------- libraries/js/package-lock.json | 34 ---------------------------------- libraries/js/package.json | 20 -------------------- 3 files changed, 73 deletions(-) delete mode 100644 libraries/js/logsmith.js delete mode 100644 libraries/js/package-lock.json delete mode 100644 libraries/js/package.json diff --git a/libraries/js/logsmith.js b/libraries/js/logsmith.js deleted file mode 100644 index 7d54a23..0000000 --- a/libraries/js/logsmith.js +++ /dev/null @@ -1,19 +0,0 @@ -import chalk from 'chalk'; - -// -// "WARNING": "yellow", -// "INFO": "blue", -// "SUCCESS": "green", -// "FAILURE": "red", -// "CRITICAL": "grey" -// - -const logLevels = { - WARN: chalk.red, - INFO: chalk.blue, - CRITICAL : chalk.bgRed.gray -} - -console.log(logLevels.INFO("test")) -console.log(logLevels.WARN("warn")) -console.log(logLevels.CRITICAL("crit")) \ No newline at end of file diff --git a/libraries/js/package-lock.json b/libraries/js/package-lock.json deleted file mode 100644 index 8e4ef10..0000000 --- a/libraries/js/package-lock.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "logsmith.js", - "version": "0.0.1", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "logsmith.js", - "version": "0.0.1", - "license": "ISC", - "dependencies": { - "chalk": "^5.0.1" - } - }, - "node_modules/chalk": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz", - "integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - } - }, - "dependencies": { - "chalk": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz", - "integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==" - } - } -} diff --git a/libraries/js/package.json b/libraries/js/package.json deleted file mode 100644 index 4b2ed94..0000000 --- a/libraries/js/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "logsmith.js", - "version": "0.0.1", - "description": "Logging Library for NodeJS Projects with logsmith-monitor support.", - "main": "logsmith.js", - "type": "module", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "keywords": [ - "logging", - "logger", - "monitor" - ], - "author": "Tanmoy Sen Gupta", - "license": "ISC", - "dependencies": { - "chalk": "^5.0.1" - } -}