Comparing version 0.1.0 to 0.1.1
@@ -1,2 +0,2 @@ | ||
(function() { | ||
(function(window) { | ||
var logger = require('andlog'), | ||
@@ -3,0 +3,0 @@ goldenRatio = 0.618033988749895, |
(function(e){if("function"==typeof bootstrap)bootstrap("bows",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeBows=e}else"undefined"!=typeof window?window.bows=e():global.bows=e()})(function(){var define,ses,bootstrap,module,exports; | ||
return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){ | ||
(function() { | ||
(function(window) { | ||
var logger = require('andlog'), | ||
@@ -5,0 +5,0 @@ goldenRatio = 0.618033988749895, |
@@ -1,1 +0,1 @@ | ||
!function(e){if("function"==typeof bootstrap)bootstrap("bows",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeBows=e}else"undefined"!=typeof window?window.bows=e():global.bows=e()}(function(){return function(e,o,n){function r(n,i){if(!o[n]){if(!e[n]){var f="function"==typeof require&&require;if(!i&&f)return f(n,!0);if(t)return t(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=o[n]={exports:{}};e[n][0].call(u.exports,function(o){var t=e[n][1][o];return r(t?t:o)},u,u.exports)}return o[n].exports}for(var t="function"==typeof require&&require,i=0;i<n.length;i++)r(n[i]);return r}({1:[function(e,o){!function(){var n,r,t=e("andlog"),i=.618033988749895,f=0,u=15;n=function(){return f+=i,f%=1,360*f},r=function(e){var o;return o="%c"+e.slice(0,u),o+=Array(u+3-o.length).join(" ")+"|",t.log.bind(t,o,"color: hsl("+n()+",99%,40%); font-weight: bold")},r.config=function(e){return e.padLength?u=e.padLength:void 0},"undefined"!=typeof o?o.exports=r:window.bows=r}.call(this)},{andlog:2}],2:[function(e,o,n){!function(e){!function(r){var t=r.localStorage,i={},f="undefined"!=typeof e&&e!==r&&"undefined"==typeof r.global;if(f)return o.exports=console,void 0;if(t&&t.debug&&r.console)i=r.console;else for(var u="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),l=u.length,s=function(){};l--;)i[u[l]]=s;"undefined"!=typeof n?o.exports=i:r.console=i}(this)}(self)},{}]},{},[1])(1)}); | ||
!function(e){if("function"==typeof bootstrap)bootstrap("bows",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeBows=e}else"undefined"!=typeof window?window.bows=e():global.bows=e()}(function(){return function(e,o,n){function r(n,i){if(!o[n]){if(!e[n]){var f="function"==typeof require&&require;if(!i&&f)return f(n,!0);if(t)return t(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=o[n]={exports:{}};e[n][0].call(u.exports,function(o){var t=e[n][1][o];return r(t?t:o)},u,u.exports)}return o[n].exports}for(var t="function"==typeof require&&require,i=0;i<n.length;i++)r(n[i]);return r}({1:[function(e,o){!function(n){var r,t,i=e("andlog"),f=.618033988749895,u=0,l=15;r=function(){return u+=f,u%=1,360*u},t=function(e){var o;return o="%c"+e.slice(0,l),o+=Array(l+3-o.length).join(" ")+"|",i.log.bind(i,o,"color: hsl("+r()+",99%,40%); font-weight: bold")},t.config=function(e){return e.padLength?l=e.padLength:void 0},"undefined"!=typeof o?o.exports=t:n.bows=t}.call(this)},{andlog:2}],2:[function(e,o,n){!function(e){!function(r){var t=r.localStorage,i={},f="undefined"!=typeof e&&e!==r&&"undefined"==typeof r.global;if(f)return o.exports=console,void 0;if(t&&t.debug&&r.console)i=r.console;else for(var u="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),l=u.length,s=function(){};l--;)i[u[l]]=s;"undefined"!=typeof n?o.exports=i:r.console=i}(this)}(self)},{}]},{},[1])(1)}); |
{ | ||
"name": "bows", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Rainbowed console logs for chrome in development", | ||
@@ -5,0 +5,0 @@ "main": "bows.js", |
@@ -22,3 +22,3 @@ # Bows | ||
If you aren't using browserify, download either (bows.js)[https://raw.github.com/latentflip/bows/master/bows.js] or (bows.min.js)[https://raw.github.com/latentflip/bows/master/bows.min.js]. | ||
If you aren't using browserify, download either [bows.js](https://raw.github.com/latentflip/bows/master/dist/bows.js) or [bows.min.js](https://raw.github.com/latentflip/bows/master/dist/bows.min.js). | ||
@@ -31,4 +31,4 @@ ## Usage | ||
- Then using it is easy: | ||
- `log("Module loaded") //-> "My Module Name | Module Loaded" | ||
- `log("Did something") //-> "My Module Name | Did something" | ||
- `log("Module loaded") //-> "My Module Name | Module Loaded"` | ||
- `log("Did something") //-> "My Module Name | Did something"` | ||
- Typically each seperate module/view/etc in your app would create it's own logger. It will be assigned it's own color to make it easy to spot logs from different modules. | ||
@@ -43,3 +43,3 @@ - Logging is disabled by default. To enable logging, set `localStorage.debug = true` in your console and refresh the page. | ||
localStorage.debug = true | ||
//Configure the max length of module names | ||
//Configure the max length of module names (optional) | ||
bows.config({ padLength: 10 }) | ||
@@ -46,0 +46,0 @@ |
69064