Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
better-console
Advanced tools
Use NPM
$ npm install better-console
better-console
is a drop-in replacement for node's default console which
gives you colors and more methods in console.
You can override console
object itself or assign better console to another variable. It's completely safe to override the native console object because better console calls native console methods for methods that are already available in it.
var console = require('better-console');
console.log("This is a log information");
console.warn("Warning!");
console.info("Information");
console.table([ [1,2], [3,4] ]);
console.time("Timer");
console.timeEnd("Timer");
console.dir(myObject);
console.log
, console.warn
, console.error
, console.info
, console.debug
, console.dir
, console.trace
These methods work exactly same as native console methods but with colors for warn
, info
or error
console.clear
Clears the screen
console.table
Draws a table of data if a 2d array or object passed to it
console.time
Creates a new timer under the given name. Call console.timeEnd(name)
with the same name to stop the timer and print the time elapsed.
console.timeEnd
Stops a timer created by a call to console.time(name) and write the time
console.trace
Prints a stack trace of JavaScript execution at the point where it is called. The stack trace details the functions on the stack, as well as the values that were passed as arguments to each function.
console.count
Writes number of times each argument is called with blue color
console.trace
more detailed with V8 flagsFAQs
A better console for Node.js
We found that better-console demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.