New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.3 to 0.2.0

17

bows.js

@@ -1,8 +0,13 @@

(function(window) {
var logger = require('andlog'),
(function() {
var inNode = typeof window === 'undefined',
ls = !inNode && window.localStorage,
debug = ls.debug,
logger = require('andlog'),
goldenRatio = 0.618033988749895,
hue = 0,
padLength = 15,
noop = function() {},
yieldColor,
bows;
bows,
debugRegex;

@@ -15,2 +20,4 @@ yieldColor = function() {

var debugRegex = debug && debug[0]==='/' && new RegExp(debug.substring(1,debug.length-1));
bows = function(str) {

@@ -21,2 +28,4 @@ var msg;

if (debugRegex && !str.match(debugRegex)) return noop;
if (!window.chrome) return logger.log.bind(logger, msg);
return logger.log.bind(logger, msg, "color: hsl(" + (yieldColor()) + ",99%,40%); font-weight: bold");

@@ -36,2 +45,2 @@ };

}
}).call(this);
}).call();
{
"name": "bows",
"version": "0.1.3",
"version": "0.2.0",
"description": "Rainbowed console logs for chrome in development",

@@ -5,0 +5,0 @@ "main": "bows.js",

@@ -24,2 +24,10 @@ # Bows

## Features
* Easily create prefixes for your logs, so that you can distinguish between logs from different parts of your app easily.
* In chrome prefixes will be color coded for even easier identification.
* Can be safely used in production, as logs will be disabled for your users, but can be enabled by you with a local storage flag.
* Greppable logs by setting `localStorage.debug = /Foo/` to only display logs for modules matching the regex to help you focus in development.
## Usage

@@ -26,0 +34,0 @@ - Works great in browserify and the browser.

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