newcrayon

0.2.0 • Public • Published

newCrayon

  1. 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.

  2. 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()

Readme

Keywords

none

Package Sidebar

Install

npm i newcrayon

Weekly Downloads

2

Version

0.2.0

License

ISC

Unpacked Size

11.9 kB

Total Files

12

Last publish

Collaborators

  • eniumeng