Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Devcon extends console for development
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
.npmignore
.travis.yml
Cakefile
LICENSE
README.md
devcon.coffee
package.json

README.md

Devcon

Devcon adds a property called dev to Node's console object, which wraps each console method with a check if its running on a production environment. Devcon is written in coffeescript by Marcel Miranda.

Source Code

Installation

npm install devcon

Usage

process.env.NODE_ENV = "production"
console.dev.log("Hello world!") // Is silent

process.env.NODE_ENV = "anything_other_than_production"
console.dev.log("Hello world!") // Is equivalent to console.log

Copyright © 2012 Marcel Miranda. See LICENSE for further details.

Something went wrong with that request. Please try again.