Skip to content

cbejensen/ngx-filesize

 
 

Repository files navigation

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}}

About

filesize.js pipe wrapper for Angular

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 52.8%
  • HTML 29.4%
  • JavaScript 17.3%
  • CSS 0.5%