Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julianhille/angular-filesizeformat-filter
Filesizeformat filter for templates angularJS
https://github.com/julianhille/angular-filesizeformat-filter
Last synced: about 1 month ago
JSON representation
Filesizeformat filter for templates angularJS
- Host: GitHub
- URL: https://github.com/julianhille/angular-filesizeformat-filter
- Owner: julianhille
- License: mit
- Created: 2014-09-07T09:52:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-10T06:54:16.000Z (over 10 years ago)
- Last Synced: 2024-11-11T07:55:20.331Z (about 2 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
angular-filesizeformat-filter
=============================Filesizeformat filter for templates in angularJS
## Install
`$ bower install angular-filesizeformat-filter`## Usages
In your app / module
```
angular.module('yourModule', ['jh.filesizeformat', ....
```In your templates, you are able to use it as filter.
```
{{ size|filesizeformat:true:3 }}
```### Parameters
```
function filesizeformat(bytes, binary, precision) ...
```#### bytes
Size in bytes.#### binary
SI value switch (KiB or kB).
binary == true -> KiB
default == false#### precision
precision of floating point (count of decimal places)
<<<<<<< HEAD
=======# TODO
Add tests with ( use travis)>>>>>>> release/v1.0.2