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

    vertical-meter

Generate a dotted vertical bar whose height depends on the given value


Version published
Weekly downloads
20
decreased by-58.33%
Maintainers
1
Install size
3.10 MB
Created
Weekly downloads
 

Readme

Source

vertical-meter

npm version Build Status Build status Coverage Status

Generate a dotted vertical bar whose height depends on the given value

const verticalMeter = require('vertical-meter');

console.log(
  verticalMeter(0),
  verticalMeter(0.25),
  verticalMeter(0.5),
  verticalMeter(0.75),
  verticalMeter(1)
);
⠀ ⣀ ⣤ ⣶ ⣿

Installation

Use npm.

npm install vertical-meter

API

const verticalMeter = require('vertical-meter');

verticalMeter(value)

value: number (0..1)
Return: string

argumentreturn
0 <= x < 1/8' '
1/8 <= x < 3/8'⣀'
3/8 <= x < 5/8'⣤'
5/8 <= x < 7/8'⣶'
7/8 <= x <= 1'⣿'

License

ISC License © 2018 Shinnosuke Watanabe

Keywords

FAQs

Last updated on 03 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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