Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

vertical-meter

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

vertical-meter

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

    1.0.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
348
decreased by-24.02%

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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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