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.22 to 0.0.23

21

index.js

@@ -25,2 +25,6 @@ var chalk = require("chalk");

if (barclis.length === 0){
clearScreen();
}
if (typeof opts === "undefined") {

@@ -71,3 +75,3 @@ opts = {};

var type = typeof data;
if (String(data).length > maxValueLength) {

@@ -160,9 +164,14 @@ maxValueLength = String(data).length;

// Clear the console and hide the cursor
process.stdout.write("\033[2J");
var clearScreen = function() {
process.stdout.on('resize', function() {
resize(process.stdout.columns);
});
// Clear the console and hide the cursor
process.stdout.write("\033[2J");
// Redraw on resize event
process.stdout.on('resize', function() {
resize(process.stdout.columns);
});
}
var resize = function(size) {

@@ -169,0 +178,0 @@

{
"name": "barcli",
"version": "0.0.22",
"version": "0.0.23",
"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