:bento: razer
Elegant Console Logger for Node.js and browserWhy razer?
- Easy to use
- Fancy output with fallback for minimal environments
- If the argument function returns false, console.log will not be executed
Installation
Using yarn:
yarn add razer
Using npm:
npm i razer
Getting Started
Basic usage:
razer'Hello Razer!'
How to use for production:
process.env.NODE_ENV = 'production' logger'Razer as console.log will not be executed'
Other using:
process.env.NODE_ENV = 'development' logger'Razer as console.log will be executed'