Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bows

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bows - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

7

bows.bundle.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc