Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

handler-logger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handler-logger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

20

index.js

@@ -6,2 +6,20 @@ const chalk = require('chalk');

colorsArray = ["green", "orange", "blue", "red"]
function log(content) {
write(content, 'black', 'bgBlue', 'LOG', true);
}
function custom(type, content, color) {
if(!colorsArray.includes(color)) return error("Color don't match with red, blue, yellow and green !")
if(color === "red") color = 'bgRed'
if(color === "blue") color = 'bgBlue'
if(color === "orange") color = 'bgYellow'
if(color === "green") color = 'bgGreen'
if(!color) return error("Color is empty !")
if(!content) return error("Content is empty !")
if(!type) return error("Type is empty !")
write(content, 'black', color, type, true);
}
function error(content) {

@@ -52,2 +70,2 @@ write(content, 'black', 'bgRed', 'ERROR', true);

module.exports = { error, warn, command, event, typo, client, db, slash };
module.exports = { custom, log, error, warn, command, event, typo, client, db, slash };

2

package.json
{
"name": "handler-logger",
"version": "1.0.0",
"version": "1.0.1",
"description": "A handler logger module with color",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc