Awesome Open Source
Awesome Open Source

ngx-filesize

A filesize.js pipe for Angular

v2 Migration

Pipe name was changed from {{ 123 | bytes }} to {{ 123 | filesize }}

Usage:

npm install ngx-filesize

In your module:

import {NgxFilesizeModule} from 'ngx-filesize';

// ...

@NgModule({
    // ...
    imports: [
        // ...
        NgxFilesizeModule,
        // ...
    ]
    // ...
})

In your component:

{{bytes | filesize}}

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Typescript (263,621
Angular (12,838
Angular2 (2,026
Angular4 (1,430
Angular5 (780
Angular6 (747
Angular7 (682
Angular8 (565
Pipe (427
Angular9 (275
Filesize (44
Angular Pipes (19
Related Projects