# led-number

> A Vue digital display component that simulates an LCD dot matrix display.

Latest version **1.0.2** (published 2018-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install led-number
pnpm add led-number
yarn add led-number
bun add led-number
```

## 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.2 |
| Published | 2018-10-30 |
| First published | 2018-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 500.7 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | ferrinweb |
| Maintainers | ferrinweb |
| Keywords | led-number, led, vue |

## Links

- npm: https://www.npmjs.com/package/led-number
- Repository: https://github.com/ferrinweb/led-number
- Homepage: https://github.com/ferrinweb/led-number/raw/master/README.md
- Issues: https://github.com/ferrinweb/led-number/issues
- npm.io page: https://npm.io/package/led-number

## Dependencies (5)

- [vue](https://npm.io/package/vue.md) ^2.5.11
- [vuese](https://npm.io/package/vuese.md) ^1.0.4
- [node-sass](https://npm.io/package/node-sass.md) ^4.9.4
- [url-loader](https://npm.io/package/url-loader.md) ^1.1.2
- [sass-loader](https://npm.io/package/sass-loader.md) ^7.1.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-10-30
- 1.0.1 — 2018-10-30
- 1.0.0 — 2018-10-30

## README

# led-number

> A Vue digital display component that simulates an LCD dot matrix display.

> The name of font used in this component is 'Let's go Digital Regular'.

![](https://github.com/ferrinweb/led-number/raw/master/screensshots.png)

## How to use / 如何使用

### Install / 安装

```javascript
npm install led-number
// or install from github reponsitory
npm install https://github.com/ferrinweb/led-number.git

// or use yarn / 推荐使用 yarn
yarn add led-number
// or install from github reponsitory
yarn add https://github.com/ferrinweb/led-number.git
```

### Import / 引入

```javascript
// global import / 全局引入
import LedNumber from 'led-number'
Vue.use(LedNumber)

// import on demand in your vue component file. / 按需引入
import LedNumber from 'led-number'
export default {
  components: {
    LedNumber
  },
  ...
}
```

### Use and demo / 使用及示例
> You can ckeckout this repository and try this demo.

> 你可以直接检出 led-number 源码到本地，查看示例。

```javascript
<template>
  <div id="app">
    <led-number class="price" :value="number" :toFixed="2" :toLocale="true"></led-number>
  </div>
</template>

<script>
import LedNumber from './lib/led-number'

export default {
  name: 'App',
  components: {
    LedNumber
  },
  data () {
    return {
      number: 3100
    }
  }
}
</script>

<style>
  /* demo page styles, just ignore these */
  html, body, #app {
    margin: 0;
    width: 100%;
    height: 100%;
  }
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
</style>
```

### Attributes / 属性
名称 | 说明 | 默认值
|---|---|---|
value | number to show |
toFixed | number of decimal digits | 2
toLocale | if format the number using the toLocaleString method | false

## Lisence
MIT Lisence.

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