newcrayon
v0.2.0
Published
a colorful log library
Downloads
19
Readme
newCrayon
introduction:
The newCrayon is a colorfull log library, which could be used both in nodejs and browser environment.
This library will provide good-looking informations for developers.
usage:
step 1: include the library into your project with npm:
npm install --save newcrayon
step 2: use debug, info, log, warn or error method of crayon when necessary:
import newCrayon from 'newcrayon' newCrayon.debug('This is a debug') newCrayon.info('This is a info') newCrayon.log('This is a log') newCrayon.warn('This is a warn') newCrayon.error('This is a error')
when you set
newCrayon.closeDebug = true
there will be no output with the method of newCrayon.debug()