0.0.7 • Published 10 months ago

weapp-colorful-console v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

WeChat Colorful Console

This is a colorful console component for WeChat MiniProgram.

Support Require and Import.

When we developping mini programs, console.log is a common used function to get or debug in your applications.

While console.log can use format settings as the params, so I uploaded this library to get a more colorful console information.

Usage

Installation

npm install weapp-colorful-console

Use It In Your Code

If Content is String:

import colorConsole from 'weapp-colorful-console';

...

colorConsole.info('Info', 'This is a common info');
colorConsole.error('Error', 'This is an error');
colorConsole.warning('Warning', 'This is an warning');
colorConsole.success('Success', 'This is success info');

if Content is Object, then append the content object to original Console.log(content).

Output Screenshot

screenshot

Notice

  • Feel free to folk or modify this repo.
  • Merge Request is welcomed.
0.0.5

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago