Skip to content

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

License

Notifications You must be signed in to change notification settings

james2doyle/vue-pretty-print-bytes-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Install

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

Usage

Template:

<em>{{ 1337 | prettyBytes }}</em>

Render:

<em>1.34 kB</em>

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published