0.1.0 • Published 5 years ago

eyegasmic v0.1.0

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

This is package, which enables us to display beautiful console.log()s in an userfriendly way.

1. Installing

npm i eyegasmic --save

2. Usage

Eyegasmic exposes different formatings for different consoles. For convinience the usage name is selected by the user e.g.: prettyConsole, pretty, log, c etc.

This naming is done at import time

import c from 'eyegasmic';

The package returnd an object which has function-properties for every supported color.

Every color-fuction returns a higher-order function which takes as parameter a tag name, which is being styled. This funcion on it's side returns another function which takes arbitrary number of parameters which are being logged.

c.green('importrant')(this, window, document);
c.orange('End of Excecution')();

To see what color-themes are available one can write

c.help();

3. Shapes

Currently the package supports only rounded rectangles, but edged rectangles, spikes and time-chips are to be added in the future.

TODO: add the missing spapes

4. Console types

TODO: add support for Node

TypeSuported
webbrowserchrome, firefox
Nodebash

5. Requirementse

PackageVersion
Node.js^10.7.0