Comparing version 0.0.4 to 0.0.5
@@ -51,3 +51,3 @@ (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; | ||
bows = function(str) { | ||
var fullkey; | ||
var fullkey, log; | ||
numKeys += 1; | ||
@@ -58,3 +58,4 @@ fullkey = "" + str + "-" + id; | ||
id++; | ||
return function() { | ||
log = logger.log.apply.bind(logger.log, logger); | ||
log.wrap = function() { | ||
var args; | ||
@@ -68,2 +69,4 @@ args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
}; | ||
log.w = log.wrap; | ||
return log; | ||
}; | ||
@@ -70,0 +73,0 @@ |
@@ -51,3 +51,3 @@ // Generated by CoffeeScript 1.6.3 | ||
bows = function(str) { | ||
var fullkey; | ||
var fullkey, log; | ||
numKeys += 1; | ||
@@ -58,3 +58,4 @@ fullkey = "" + str + "-" + id; | ||
id++; | ||
return function() { | ||
log = logger.log.apply.bind(logger.log, logger); | ||
log.wrap = function() { | ||
var args; | ||
@@ -68,2 +69,4 @@ args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
}; | ||
log.w = log.wrap; | ||
return log; | ||
}; | ||
@@ -70,0 +73,0 @@ |
{ | ||
"name": "bows", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Rainbowed console logs for chrome in development", | ||
@@ -5,0 +5,0 @@ "main": "bows.js", |
@@ -7,2 +7,4 @@ # Colorize your logs (WIP) | ||
![Example output](http://monosnap.com/image/B95kOBXY93TYV884xjCmFgJwo.png) | ||
## Usage | ||
@@ -14,6 +16,12 @@ - Works great in browserify | ||
//In mymodule.js | ||
var wrap = require('bows')('MyModule'); | ||
var log = require('bows')('MyModule'); | ||
... | ||
bows.log(wrap('My log string')) //=> colorized "MyModule | My log string" | ||
log(log.wrap('My log string')) //=> colorized "MyModule | My log string" | ||
/In another module.js | ||
var log = require('bows')('Another Module'); | ||
log(log.wrap('My log')) //=> colorized "Another Module | My log" | ||
``` | ||
@@ -20,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11954
248
70