Current collected state Current
Observed since 20 Oct, 17:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Patched console functions with improved output.
Simple patched console functions with improved output.

npm i 0console
With patched console object:
require("0console").patch();
console.log("Hello World!");
console.log("Highlighted", "Hello World!");
Without patching the console object:
const $console = require("0console");
$console.log("Hello World!");
$console.log("Highlighted", "Hello World!");
console.log(...args) : Writes a normal message.console.info(...args) : Writes an information message.console.warn(...args) : Writes a warning message.console.error(...args) : Writes an error message.console.clear(...args) : Clears the output (Unlike the original).console.success(...args) : Writes a success message.console.line(char?, color?, count?) : Writes an horizontal line.
char : text to repeat (one character).color : text color in the console (Using Chalk).count : times to repeat char (Length of the line).💡 If a logging function (log, info, warn, error, success) has more than one argument, the text of the first argument will be highlighted in the console.
You can craft your own custom function:
const $console = require("0console");
const newConsoleInfo = $console.craft(console.info, {
prefix: { text: "?", color: "cyanBright", bgColor: "bgBlueBright" },
highlight: { color: "blueBright" },
normal: { color: "blueBright" },
});
console.craft(fn, options?) : Crafts a patched version of the given console function.
fn : Console function to craft from.options : Options object.
prefix : Object describing the prefix text.
text: Text of the prefix.color: Color of the prefix.bgColor: Background color of the prefix.highlight : Object describing the highlighted text of the first argument.
color: Color of the highlighted text.normal : Object describing the normal text.
color: Color of the normal text.Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.1Registry latest | 6 Mar 2022 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:23113f536af13bcf0a1d61997e85632a414fae3710fa9685fc0351350e0e01e4