1.0.5 • Published 3 years ago

ngx-file-size-formatter-mb v1.0.5

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

ngx-file-size-formatter-mb

Prerequisites

Angular Version > 8

Installation

To install and set up the library, run:

$ npm install -s ngx-file-size-formatter-mb

Or if you prefer using Yarn:

$ yarn add ngx-file-size-formatter-mb

Usage

Importing ngx-file-size-formatter-mb

Import the ngx-file-size-formatter-mb utility into your Angular application:

import {NgxFileSizeFormatterMbModule} from 'ngx-file-size-formatter-mb';

@NgModule({
  declarations: [
    ...
  ],
  imports: [
    ...,
    NgxFileSizeFormatterMbModule
  ],
  providers: [...],
  bootstrap: [...]
})
export class AppModule { }

The fileSize pipe will accept data in bytes and returns the file size in 'bytes','KB','MB','GB','TB','PB' according to the value

Example

<div> {{ '1024' | fileSize}} </div>

Authors

Devashree Hingne - GitHub

License

None

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago