@colors/colors
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -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 @@ |
@@ -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": { |
39491
993