1.1.2 • Published 10 years ago
stipes v1.1.2
Overview
This is a simple little module to write pretty things to the console and help you stay sane.
NOTE All stipes logging uses pretty colors. Colors are not, however, included in the examples below :disappointed:
Usage
Simple messages
stipes = require 'stipes'
stipes.debug 'Richard', "WHAT'S HAPPENING?!"
This will output DEBUG(Richard) WHAT'S HAPPENING?!
JSON data
stipes = require 'stipes'
stipes.error 'Postgres', 'ran into an error', error
This willl output the following:
ERROR(Tester) ran into an error
-code: 314159
-message: Expected cake
Available methods
success
- When good things happenwarn
- When strange things happenerror
- when the world endsnotice
- just so you're awaredebug
- To help you work through a tough spot