Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
beautify-console-log
Advanced tools
This is a further beautification and encapsulation of the 'console' object, including console. log, console. info, console. warn, and console. error.
This is a further beautification and encapsulation of the 'console' object, including console. log, console. info, console. warn, and console. error.
You can add custom console printing prefixes and beautify the content (rule reference https://developer.mozilla.org/en-US/docs/Web/API/Console , node environment reference https://en.wikipedia.org/wiki/ANSI_escape_code#Colors), can close console printing at any time, supporting node.js environments. Please view the effect on the console.
Software Architecture Description
npm i beautify-console-log --save
or
yarn add beautify-console-log
const log = BeautifyConsole.getInstance();
//The usage is consistent with the normal console.info()
Log.info(1234, '4', [3, 5]);
or
const log = new BeautifyConsole();
//The usage is consistent with the normal console.info()
Log.info(1234, '4', [3, 5]);
const log = BeautifyConsole.getInstance();
Log.info(1234, '4', [3, 5]);
Log.log(1234, '4', [3, 5]);
Log.warn(1234, '4', [3, 5]);
Log.error(1234, '4', [3, 5]);
const log = BeautifyConsole.getInstance();
Log.setPadStartText('log ','hello world').info(1234,'4 ', [3, 5]);
const log = BeautifyConsole.getInstance();
log.close('info');
log.close('log');
log.close('warn');
log.close('error');
log.close();
log.close().open('error');
// or
log.open('error').open('log').open('warn').open('info');
// or
log.close('error').info('closed error');
log.close('error').error('closed error');
// or
log.close('error').open('info');
log.close('error').open('info').info('info...');
const log = BeautifyConsole.getInstance();
log.open('info');
log.open('log');
log.open('warn');
log.open('error');
log.open().close('info');
//or
log.open('error').open('log').open('warn').open('info');
// or
log.open().info('closed error');
log.open('error').error('closed error');
// or
log.close('error').open('info');
log.close('error').open('info').info('info...');
Fork warehouse
Create a new Feat_Xxx branch
Submit Code
Create a new Pull Request
FAQs
This is a further beautification and encapsulation of the 'console' object. You can use it like using "console. log", "console. info", "console. warn", "console. error", and it can display the code line information where the log is printed.
The npm package beautify-console-log receives a total of 332 weekly downloads. As such, beautify-console-log popularity was classified as not popular.
We found that beautify-console-log demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.