vue-pretty-print-bytes-filter

1.0.0 • Public • Published

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>

/vue-pretty-print-bytes-filter/

    Package Sidebar

    Install

    npm i vue-pretty-print-bytes-filter

    Weekly Downloads

    2

    Version

    1.0.0

    License

    none

    Last publish

    Collaborators

    • james2doyle