eyegasmic v0.1.0
This is package, which enables us to display beautiful console.log()s in an userfriendly way.
1. Installing
npm i eyegasmic --save2. 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
| Type | Suported |
|---|---|
| webbrowser | chrome, firefox |
| Node | bash |
5. Requirementse
| Package | Version |
|---|---|
| Node.js | ^10.7.0 |