Skip to content

Commit

Permalink
Reorganize examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 26, 2016
1 parent 0146df6 commit 305f8e5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
File renamed without changes.
26 changes: 26 additions & 0 deletions examples/levels.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'use strict'

var Acho = require('..')
var acho = Acho({
upperCase: true
})

var levels = Object.keys(acho.types)

var fixtureObj = {
foo: 'bar',
hello: 'world'
}

var fixtureArr = [1, 2, 3, 4, 5]

acho.debug('%j', fixtureObj)
acho.debug(fixtureObj)
acho.debug(fixtureArr)

levels.forEach(function (level) {
setInterval(function () {
acho[level]('This is a auto-generated ' + level + ' message')
acho[level](fixtureObj)
}, 1000)
})

0 comments on commit 305f8e5

Please sign in to comment.