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

barcli

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barcli - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

12

index.js

@@ -10,3 +10,3 @@ var chalk = require("chalk");

// Johnny-Five library https://github.com/rwaldron/johnnny-five
fmap = function(value, fromLow, fromHigh, toLow, toHigh) {
var fmap = function(value, fromLow, fromHigh, toLow, toHigh) {
return (value - fromLow) * (toHigh - toLow) /

@@ -16,3 +16,3 @@ (fromHigh - fromLow) + toLow;

constrain = function(value, lower, upper) {
var constrain = function(value, lower, upper) {
return Math.min(upper, Math.max(lower, value));

@@ -67,4 +67,8 @@ };

if (Array.isArray(data)) {
data = data[0];
}
var type = typeof data;
if (String(data).length > maxValueLength) {

@@ -155,2 +159,4 @@ maxValueLength = String(data).length;

Barcli.prototype.set = Barcli.prototype.update;
// Clear the console and hide the cursor

@@ -157,0 +163,0 @@ process.stdout.write("\033[2J");

{
"name": "barcli",
"version": "0.0.19",
"version": "0.0.20",
"description": "A simple tool for displaying real time bar graphs in the console",

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

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