# @wtfcode/vue-byte-converter

> Vue Components For Byte Converter Library

Latest version **1.0.7** (published 2020-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wtfcode/vue-byte-converter
pnpm add @wtfcode/vue-byte-converter
yarn add @wtfcode/vue-byte-converter
bun add @wtfcode/vue-byte-converter
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-02-23 |
| First published | 2020-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 105.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bomdia |
| Maintainers | bomdia |
| Keywords | vue, vuejs, components, byte, bit, conversion, vue-byte-converter, byte-converter, autoconvert, vue byte converter, byte converter, vue byte convert, byte convert, comparison, binary, decimal, kilobit, megabit, megabyte, mebibyte |

## Links

- npm: https://www.npmjs.com/package/@wtfcode/vue-byte-converter
- Repository: https://github.com/bomdia/vue-byte-converter
- Homepage: https://github.com/bomdia/vue-byte-converter#readme
- Issues: https://github.com/bomdia/vue-byte-converter/issues
- npm.io page: https://npm.io/package/@wtfcode/vue-byte-converter

## Dependencies (1)

- [@wtfcode/byte-converter](https://npm.io/package/@wtfcode/byte-converter.md) ^1.7.11

## 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.7 (latest) — 2020-02-23
- 1.0.6 — 2020-02-13
- 1.0.5 — 2020-02-03
- 1.0.1 — 2020-02-03
- 1.0.0 — 2020-02-03

## README

# vue-byte-converter
Vue Components for use [**Byte Converter**](https://github.com/bomdia/byte-converter) libary easily within vue

import the component and use Vue.use() for register the components
there are a named view for all components in kebapcase es = VDataFormatConverter
there is another one named view: **ByteConverter** that expose the original library class packaged in the dist file in case you need

the component register an instance property: $byteConverter for use byte-converter Library in any other part of the application

## **COMPONENTS**

|name|description|property|slot|
|--|--|--|--|
|**v-data-format-converter**|convert value across dataFormats use the default scope for override the default functionality||default scope={...$props,converted,convertedText,toAsName}|
||value in the dataFormat specified by **from**|**value**:Number **required**||
||show the **to** dataFormat name|**viewName**:Boolean=false||
||show the **to** dataFormat|**viewDataFormat**:Boolean=false||
||show value as speed B/s|**speed**:Boolean=false||
||the current value dataFormat|**from**:String='B'||
||the wanted value dataFormat|**to**:String='MiB'||
||if you want to localize value|**localize**:Boolean=false||
||the locale to use if localize is true|**locale**:String='en'||
||the minimum number of digit after decimal point|**minimumFractionDigits**:Number=-1||
||the maximum number of digit after decimal point|**maximumFractionDigits**:Number=-1||
|||||
|**v-data-format-auto-converter**|convert value across dataFormats automatically use the default scope for override the default functionality||default scope={...$props,converted,convertedText,to,toAsName}|
||value in the dataFormat specified by **from**|**value**:Number **required**||
||show the **to** dataFormat name|**viewName**:Boolean=false||
||show the **to** dataFormat|**viewDataFormat**:Boolean=false||
||show value as speed B/s|**speed**:Boolean=false||
||the current value dataFormat|**from**:String='B'||
||if you want to localize value|**localize**:Boolean=false||
||the locale to use if localize is true|**locale**:String='en'||
||the minimum number of digit after decimal point|**minimumFractionDigits**:Number=-1||
||the maximum number of digit after decimal point|**maximumFractionDigits**:Number=-1||
||the option for scale algorithm|**scaleOptions**:Object = {||
||have to prefer Byte unit|   preferByte:Boolean=false,||
||or have to prefer Bit unit|   preferBit:Boolean=false,||
||or have to prefer same unit|    preferSameUnit:Boolean=true,||
||or have to prefer opposite unit|    preferOppositeUnit:Boolean=false,||
||have to prefer Binary base|   preferBinary:Boolean=false,||
||or to prefer Decimal base|    preferDecimal:Boolean=false,||
||or to prefer same base|   preferSameBase:Boolean=true,||
||or to prefer opposite base|   preferOppositeBase:Boolean=false,||
||an handler function for custom filtering dataFormats return true to pass or false to filter|   handler:Function->Boolean }||
|||||

---
_Source: https://npm.io/package/@wtfcode/vue-byte-converter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
