@euclidean-dev/console-override
v1.0.4
Published
Override console methods to control the output
Downloads
1
Maintainers
Readme
console-override
Keeps the console clean in desired environments.
install
npm i @euclidean-dev/console-override
usage
Default usage:
import { ConsoleOverride } from "@euclidean-dev/console-override";
ConsoleOverride.configure(); // Default behavior
Custom usage:
ConsoleOverride.configure({
exclude: ["error", "info", "clear"],
enabled: process.env.isProduction, // default true
clearOnLoad: true, // default false
debugKey: "my-key", // disable overrides by adding my-key=true in local storage
});