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.0.0 to 1.1.0

4

chart.js
"use strict";
const chart = (data, maxLength = 100) => {
const chart = (data, dataLabel = false, maxLength = 100) => {
const formatted = Object.keys(data).map((key) => { return {key:key, value:data[key]} });

@@ -11,3 +11,3 @@ const sorted = formatted.sort((a, b) => b.value - a.value);

return item.key + " ".repeat(maxKeyLength - item.key.length + 1)
+ "█".repeat(barLength);
+ "█".repeat(barLength) + (dataLabel ? ` ${item.value}` : "");
}).join('\n');

@@ -14,0 +14,0 @@ }

{
"name": "ascii-horizontal-barchart",
"version": "1.0.0",
"version": "1.1.0",
"description": "Ascii horizontal bar chart",

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

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