Socket
Socket
Sign inDemoInstall

vertical-meter

Package Overview
Dependencies
7
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 1.0.0

8

index.js

@@ -8,4 +8,8 @@ 'use strict';

module.exports = function verticalMeter(val) {
return contents[Math.round(rateMap(val, 0, MAX))];
module.exports = function verticalMeter(...args) {
if (args.length !== 1) {
throw new RangeError(`Expected 1 argument (<number>), but got ${args.length || 'no'} arguments.`);
}
return contents[Math.round(rateMap(args[0], 0, MAX))];
};
{
"name": "vertical-meter",
"version": "0.2.0",
"version": "1.0.0",
"description": "Generate a dotted vertical bar whose height depends on the given value",

@@ -5,0 +5,0 @@ "repository": "shinnn/vertical-meter",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc