3.0.5 • Published 2 months ago
ngx-filesize v3.0.5
ngx-filesize
A filesize.js pipe for Angular.
3.0.0 breaking changes
ngx-filesize
now supports & requires Angular 14+.filesize
is now a peer dependency (>= 6.0.0 < 10.0.0
, note10
isn't supported), and so it must be installed alongsidengx-filesize@^3
.
2.0.0 breaking changes
Pipe name was changed from {{ 123 | bytes }}
to {{ 123 | filesize }}
Usage:
npm install ngx-filesize filesize@9
# or
yarn add ngx-filesize filesize@9
Import the NgxFilesizeModule
into your own NgModule
:
import {NgxFilesizeModule} from 'ngx-filesize';
@NgModule({
// ...
imports: [NgxFilesizeModule]
})
// ...
Or, if you don't have an NgModule
, in your @Component
:
import {NgxFilesizeModule} from 'ngx-filesize';
@Component({
// ...
imports: [NgxFilesizeModule]
})
// ...
And use the pipe in your templates:
{{ 123 | filesize }}
optionally add options to filesize e.g.
{{ 123 | filesize: {base: 2} }}
(this would transform 1024 to 1 like for bytes)
3.0.5
2 months ago
3.0.4
10 months ago
3.0.3
1 year ago
3.0.2
2 years ago
3.0.0-alpha.1
3 years ago
3.0.0-alpha.0
3 years ago
3.0.1
2 years ago
3.0.0
3 years ago
2.0.16
5 years ago
2.0.15
5 years ago
2.0.14
5 years ago
2.0.13
5 years ago
2.0.3
5 years ago
2.0.5
5 years ago
2.0.4
5 years ago
2.0.11
5 years ago
2.0.7
5 years ago
2.0.12
5 years ago
2.0.6
5 years ago
2.0.9
5 years ago
2.0.10
5 years ago
2.0.8
5 years ago
2.0.2
5 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago