@ycm.jason/logger

0.1.5 • Public • Published

@ycm.jason/logger

Display log with styles.

screenshot

Install

npm i --save @ycm.jason/logger

Usage

const logger = new require('@ycm.jason/logger')({ silent: false });

logger.clear();                // clear console
logger.log('hello world');     // LOG hello world (grey)
logger.print('hello world');   // hello world
logger.info('hello world');    // INFO hello world (cyan)
logger.success('hello world'); // SUCCESS hello world (green)
logger.error('hello world');   // ERROR hello world (red)
logger.warn('hello world');    // WARN hello world (yellow)

Test

npm t

Author

Jason Yu (me@ycmjason.com)

Readme

Keywords

none

Package Sidebar

Install

npm i @ycm.jason/logger

Weekly Downloads

1

Version

0.1.5

License

ISC

Unpacked Size

58.1 kB

Total Files

5

Last publish

Collaborators

  • ycm.jason