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

@colors/colors

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

@colors/colors - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

1

examples/normal-usage.js

@@ -32,2 +32,3 @@ var colors = require('../lib/index');

// eslint-disable-next-line max-len
console.log('Blindingly '.brightCyan + 'bright? '.brightRed + 'Why '.brightYellow + 'not?!'.brightGreen);

@@ -34,0 +35,0 @@

@@ -31,2 +31,3 @@ var colors = require('../safe');

// eslint-disable-next-line max-len
console.log(colors.brightCyan('Blindingly ') + colors.brightRed('bright? ') + colors.brightYellow('Why ') + colors.brightGreen('not?!'));

@@ -33,0 +34,0 @@

4

index.d.ts

@@ -1,5 +0,5 @@

// Type definitions for Colors.js 1.2
// Type definitions for @colors/colors 1.4+
// Project: https://github.com/Marak/colors.js
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>
// Definitions: https://github.com/Marak/colors.js
// Definitions: https://github.com/DABH/colors.js

@@ -6,0 +6,0 @@ export interface Color {

@@ -68,3 +68,3 @@ /*

// Stylize should work for non-ANSI styles, too
if(!styleMap && style in colors){
if (!styleMap && style in colors) {
// Style maps like trap operate as functions on strings;

@@ -71,0 +71,0 @@ // they don't have properties like open or close.

{
"name": "@colors/colors",
"description": "get colors in your node.js console",
"version": "1.4.0",
"version": "1.5.0",
"author": "DABH",

@@ -26,3 +26,3 @@ "contributors": [

"lint": "eslint . --fix",
"test": "node tests/basic-test.js && node tests/safe-test.js"
"test": "export FORCE_COLOR=1 && node tests/basic-test.js && node tests/safe-test.js"
},

@@ -29,0 +29,0 @@ "engines": {

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