develoge
v1.0.2
Published
Dont worry about removing all console logs in production
Downloads
3
Maintainers
Readme
develoge
Process based console messages.
What develoge does?
Removing all console.log s for production build would waste a lot of time. Develoge gets the current environment process and prevents your app from logging in production build.
Features
- Make customized console messages using fancy function.
- Add prefix and postfix to all your messages.
- Create new instance of Develoge class for a new set of messages.
Installing
Using npm:
$ npm i develoge
develoge API
develoge.config(env)
develoge.config(process.env.NODE_ENV);
develoge.prefix
develoge.prefix = "DEVELOGE >";
develoge.postfix
develoge.prefix = "!";
develoge.log|warn|info|error|debug|fancy
develoge.log("Your message");
develoge.warn("Your message");
develoge.info("Your message");
develoge.error("Your message");
develoge.debug("Your message");
develoge.fancy("Your message"[, {prefix, prefixColor, postfix, textColor}]);