0.2.4 • Published 9 years ago

dolog v0.2.4

Weekly downloads
1
License
WTFPL
Repository
github
Last release
9 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

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9-a

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7-a

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago