An open API service indexing awesome lists of open source software.

https://github.com/james2doyle/vue-pretty-print-bytes-filter

A filter for Vue.js to format bytes into a nice human-readable format.
https://github.com/james2doyle/vue-pretty-print-bytes-filter

Last synced: 11 months ago
JSON representation

A filter for Vue.js to format bytes into a nice human-readable format.

Awesome Lists containing this project

README

          

# vue-pretty-print-bytes-filter

A filter for Vue.js to format bytes into a nice human-readable format. I pretty (no pun intended) much just stole this from [sindresorhus/pretty-bytes](https://github.com/sindresorhus/pretty-bytes).

### Install

Available through npm as `vue-pretty-print-bytes-filter`, or include as an inline script.

### Usage

Template:

```html
{{ 1337 | prettyBytes }}
```

Render:

```html
1.34 kB
```