0.1.0 • Published 5 years ago

react-console-colors v0.1.0

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

react-console-colors

Adding colors to console.logs inside browser inspector.

I made this to make it easier/quicker to find console logs during development.

This adds methods using prototype, so requiring it once on entry file will make it globally accessible.

Installation

npm install react-console-colors -D

##Limitations (colors):

Types supported: String, Number, {}, []

Support for only one argument, working on handling more

Colors:

.cyan()
.green()
.red()
.black()
.yellow()
.magenta()

Usage

require('react-console-colors');

let string = 'Hello World';
let array = ['Hello World'];
let number = 12345;
let object = {
  name: 'hello',
  type: 'world'
}

string.cyan()
array.red()
number.magenta()
object.green()

##Limitations(any):

Types supported: String, Number

Support for only one argument & one style option, see usage example:

Usage for console.any

var style = [
  'background-color: cornflowerblue',
  'font-size: 30px',
  'color: white',
  'border-radius: 50px'
];

console.any('hello world',style);

FYI: For NodeJS color output you can find a much better package called 'colors'

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago