0.3.7 • Published 5 years ago
razer v0.3.7
Why 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:
import razer from 'razer'
razer('Hello Razer!')
How to use for production:
import razer from 'razer'
process.env.NODE_ENV = 'production'
const logger = razer(() => {
process.env.NODE_ENV !== 'production' // false
})
logger('Razer as console.log will not be executed')
Other using:
import razer from 'razer'
process.env.NODE_ENV = 'development'
const logger = razer(() => {
process.env.NODE_ENV !== 'production' // true
})
logger('Razer as console.log will be executed')
Author
License
0.3.6
5 years ago
0.3.5
5 years ago
0.3.7
5 years ago
0.3.4
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago