New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

console-styles

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-styles - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

16

index.js
let styles = [];
const modifiers = {
const log = text => {
console.log(`${styles.join("")}${text}\x1b[0m`);
styles = [];
}
const styler = new Proxy({
reset: "\x1b[0m",

@@ -27,10 +32,3 @@ bright: "\x1b[1m",

bgWhite: "\x1b[47m",
};
const log = text => {
console.log(`${styles.join("")}${text}${modifiers.reset}`);
styles = [];
}
const styler = new Proxy(modifiers, {
}, {
get: (target, prop) => {

@@ -37,0 +35,0 @@ if (prop in target) {

{
"name": "console-styles",
"version": "0.0.2",
"version": "0.0.3",
"description": "a styled console logger with no dependencies",

@@ -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