New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ascii-horizontal-barchart

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ascii-horizontal-barchart - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

14

lib/chart.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

@@ -15,4 +19,4 @@

var chart = function chart(data) {
var dataLabel = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];
exports.default = function (data) {
var showValue = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];
var maxBarLength = arguments.length <= 2 || arguments[2] === undefined ? 100 : arguments[2];

@@ -35,7 +39,5 @@

var barText = bar(item.value, maxValue, maxBarLength);
var suffix = dataLabel ? ' ' + item.value : "";
var suffix = showValue ? ' ' + item.value : "";
return prefix + barText + suffix;
}).join('\n');
};
module.exports = chart;
};
{
"name": "ascii-horizontal-barchart",
"version": "1.3.0",
"version": "1.3.1",
"description": "Ascii horizontal bar chart",

@@ -5,0 +5,0 @@ "repository": {

@@ -9,4 +9,4 @@ # ascii-horizontal-barchart

const data = {
Ruby: 39146,
C: 18768,
'Objective-C': 109891,
Ruby: 13537,
Python: 268799,

@@ -17,3 +17,7 @@ HTML: 2597,

Shell: 19098,
JavaScript: 6422
C: 2228,
CoffeeScript: 2571,
JavaScript: 8782,
VimL: 12426,
'C++': 191787
}

@@ -25,2 +29,2 @@

![](https://cloud.githubusercontent.com/assets/1413408/16563178/81fd1a88-423b-11e6-91c6-a55aa321a77f.png)
![](https://cloud.githubusercontent.com/assets/1413408/16590067/f0faf57e-4310-11e6-858d-fa9748483bc3.png)
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