shredbeat
Version:
Music beat reacts to your keyboard shredding speed 🤘
18 lines (12 loc) • 380 B
JavaScript
var notifier = require('node-notifier')
function debug(args) {
args = [].slice.call(arguments)
if (process.env.NODE_ENV === 'development') {
var ret = args.reduce((acc, val, i) => {
return acc.concat(typeof val === 'object' ? JSON.stringify(val) : val)
}, []);
notifier.notify(ret[0]);
console.log.apply(console, ret)
}
}
module.exports = debug