Comparing version 1.3.0 to 1.3.1
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.bows=e()}}(function(){return function e(n,o,r){function t(f,u){if(!o[f]){if(!n[f]){var l="function"==typeof require&&require;if(!u&&l)return l(f,!0);if(i)return i(f,!0);var d=new Error("Cannot find module '"+f+"'");throw d.code="MODULE_NOT_FOUND",d}var a=o[f]={exports:{}};n[f][0].call(a.exports,function(e){var o=n[f][1][e];return t(o?o:e)},a,a.exports,e,n,o,r)}return o[f].exports}for(var i="function"==typeof require&&require,f=0;f<r.length;f++)t(r[f]);return t}({1:[function(e,n){!function(){function o(){var e,n=!!window.chrome,o=/firefox/i.test(navigator.userAgent);if(o){var r=navigator.userAgent.match(/Firefox\/(\d+\.\d+)/);r&&r[1]&&Number(r[1])&&(e=Number(r[1]))}return n||e>=31}var r=function(){var e=.618033988749895;return a+=e,a%=1,360*a},t="undefined"==typeof window,i=!t&&window.localStorage,f=i.andlogKey||"debug",u=i[f],l=e("andlog"),d=Function.prototype.bind,a=0,c=15,p=function(){},s=i.debugColors||o(),g=null,w=null,v={};w=u&&"/"===u[0]&&new RegExp(u.substring(1,u.length-1));for(var y=["log","debug","warn","error","info"],h=0,m=y.length;m>h;h++)p[y[h]]=p;g=function(e){var n,o,t;if(n=e.slice(0,c),n+=Array(c+3-n.length).join(" ")+"|",w&&!e.match(w))return p;if(!d)return p;var i=[l];if(s){v[e]||(v[e]=r());var f=v[e];n="%c"+n,o="color: hsl("+f+",99%,40%); font-weight: bold",i.push(n,o)}else i.push(n);if(arguments.length>1){var u=Array.prototype.slice.call(arguments,1);i=i.concat(u)}return t=d.apply(l.log,i),y.forEach(function(e){t[e]=d.apply(l[e]||t,i)}),t},g.config=function(e){e.padLength&&(c=e.padLength)},"undefined"!=typeof n?n.exports=g:window.bows=g}.call()},{andlog:2}],2:[function(e,n,o){!function(){var e="undefined"==typeof window,r=!e&&window.localStorage,t={};if(e)return n.exports=console,void 0;var i=r.andlogKey||"debug";if(r&&r[i]&&window.console)t=window.console;else for(var f="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),u=f.length,l=function(){};u--;)t[f[u]]=l;"undefined"!=typeof o?n.exports=t:window.console=t}()},{}]},{},[1])(1)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.bows=e()}}(function(){return function e(n,o,r){function t(f,u){if(!o[f]){if(!n[f]){var l="function"==typeof require&&require;if(!u&&l)return l(f,!0);if(i)return i(f,!0);var d=new Error("Cannot find module '"+f+"'");throw d.code="MODULE_NOT_FOUND",d}var a=o[f]={exports:{}};n[f][0].call(a.exports,function(e){var o=n[f][1][e];return t(o?o:e)},a,a.exports,e,n,o,r)}return o[f].exports}for(var i="function"==typeof require&&require,f=0;f<r.length;f++)t(r[f]);return t}({1:[function(e,n){(function(){function o(){var e,n=!!window.chrome,o=/firefox/i.test(navigator.userAgent);if(o){var r=navigator.userAgent.match(/Firefox\/(\d+\.\d+)/);r&&r[1]&&Number(r[1])&&(e=Number(r[1]))}return n||e>=31}var r=function(){var e=.618033988749895;return a+=e,a%=1,360*a},t="undefined"==typeof window,i=!t&&window.localStorage,f=i.andlogKey||"debug",u=i[f],l=e("andlog"),d=Function.prototype.bind,a=0,c=15,p=function(){},s=i.debugColors||o(),g=null,w=null,v={};w=u&&"/"===u[0]&&new RegExp(u.substring(1,u.length-1));for(var y=["log","debug","warn","error","info"],h=0,m=y.length;m>h;h++)p[y[h]]=p;g=function(e){var n,o,t;if(n=e.slice(0,c),n+=Array(c+3-n.length).join(" ")+"|",w&&!e.match(w))return p;if(!d)return p;var i=[l];if(s){v[e]||(v[e]=r());var f=v[e];n="%c"+n,o="color: hsl("+f+",99%,40%); font-weight: bold",i.push(n,o)}else i.push(n);if(arguments.length>1){var u=Array.prototype.slice.call(arguments,1);i=i.concat(u)}return t=d.apply(l.log,i),y.forEach(function(e){t[e]=d.apply(l[e]||t,i)}),t},g.config=function(e){e.padLength&&(c=e.padLength)},"undefined"!=typeof n?n.exports=g:window.bows=g}).call()},{andlog:2}],2:[function(e,n,o){!function(){var e="undefined"==typeof window,r=!e&&window.localStorage,t={};if(e)return void(n.exports=console);var i=r.andlogKey||"debug";if(r&&r[i]&&window.console)t=window.console;else for(var f="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),u=f.length,l=function(){};u--;)t[f[u]]=l;"undefined"!=typeof o?n.exports=t:window.console=t}()},{}]},{},[1])(1)}); |
{ | ||
"name": "bows", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Rainbowed console logs for chrome, opera and firefox in development.", | ||
@@ -5,0 +5,0 @@ "main": "bows.js", |
@@ -14,3 +14,3 @@ # Bows | ||
## Installation. | ||
## Installation | ||
@@ -23,4 +23,10 @@ If you are using browserify, you'll want something like: | ||
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). | ||
If you use Bower: | ||
``` | ||
bower install bows --save | ||
``` | ||
Otherwise, 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). | ||
## Features | ||
@@ -27,0 +33,0 @@ |
85540
25
339
127