@cyber_patrick/colorfullog
v1.1.3
Published
Make logs more colorful
Downloads
15
Readme
Usage
Package have 4 methods:
- log - Date + bold text;
- success - Date + green "Success!" + bold text;
- warning - Date + yellow "Warning! + bold text;
- err - Date + red "Error!" + bold text.
Will write
const { log, success, warning, err } = require('@cyber_patrick/colorfullog');
log('Hello World!');
Will write
warning('Hello World!');
Will write
success('Hello World!');
Will write and stop programm
err('Hello World!');
Note: err - call process.exit()
Loading
Package have also an class Loading, to constructor you pass title, then to upgrade progress bar you should call pipe(progress, state). Which have two params, first is how much add to progress (1-100), second is how name process, may be passed