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.
- Host: GitHub
- URL: https://github.com/james2doyle/vue-pretty-print-bytes-filter
- Owner: james2doyle
- License: mit
- Created: 2015-12-07T01:12:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-07T01:13:49.000Z (over 10 years ago)
- Last Synced: 2025-06-17T18:59:29.251Z (12 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```