0.2.4 • Published 8 years ago

dolog v0.2.4

Weekly downloads
1
License
WTFPL
Repository
github
Last release
8 years ago

console.log can get annoying. you could go through all your code and comment it out. or you could just use this.

usage:

set doLog to true and NODE_ENV to anything that's not production

const log = require('doLog')

doLog = true

log('hello')

function ex(ample){
  log(ample)
}

ex('stuff to be logged')

doLog = false

log('this will not be logged')

doLog = true

process.env.NODE_ENV = 'production'

log('this will also not be logged')

license: wtfpl

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9-a

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7-a

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago