# vertical-meter

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

Latest version **1.0.0** (published 2018-04-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install vertical-meter
pnpm add vertical-meter
yarn add vertical-meter
bun add vertical-meter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-04-03 |
| First published | 2017-04-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Shinnosuke Watanabe |
| Maintainers | shinnn |
| Keywords | vertical, meter, bar, graph, value, height, degree, percantage, visualize, visualization, braille, terminal, unicode |

## Links

- npm: https://www.npmjs.com/package/vertical-meter
- Repository: https://github.com/shinnn/vertical-meter
- Homepage: https://github.com/shinnn/vertical-meter#readme
- Issues: https://github.com/shinnn/vertical-meter/issues
- npm.io page: https://npm.io/package/vertical-meter

## Dependencies (1)

- [rate-map](https://npm.io/package/rate-map.md) ^1.0.1

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-04-03
- 0.2.0 — 2018-04-02
- 0.1.1 — 2018-03-28
- 0.1.0 — 2017-04-28
- 0.0.0 — 2017-04-28

## README

# vertical-meter

[![npm version](https://img.shields.io/npm/v/vertical-meter.svg)](https://www.npmjs.com/package/vertical-meter)
[![Build Status](https://travis-ci.org/shinnn/vertical-meter.svg?branch=master)](https://travis-ci.org/shinnn/vertical-meter)
[![Build status](https://ci.appveyor.com/api/projects/status/pfaygmaamvhpirb4/branch/master?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/vertical-meter/branch/master)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/vertical-meter.svg)](https://coveralls.io/github/shinnn/vertical-meter?branch=master)

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

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

console.log(
  verticalMeter(0),
  verticalMeter(0.25),
  verticalMeter(0.5),
  verticalMeter(0.75),
  verticalMeter(1)
);
```

```
⠀ ⣀ ⣤ ⣶ ⣿
```

## Installation

[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).

```
npm install vertical-meter
```

## API

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

### verticalMeter(*value*)

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

| argument               | return       |
|:-----------------------|:-------------|
| `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](./LICENSE) © 2018 Shinnosuke Watanabe

---
_Source: https://npm.io/package/vertical-meter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
