saymedia / angularjs-humanize

AngularJS filters wrapping the 'humanize' library
MIT License
10 stars 6 forks source link

angularjs-humanize

angularjs-humanize is a thin wrapper around the humanize library, providing a variety of Angular filters which apply transformations to make data more human-readable.

Installation

Install the library via

bower install -S angularjs-humanize

Add it to your index.html:

<script src="https://github.com/saymedia/angularjs-humanize/raw/master/bower_components/humanize/humanize.js"></script>
<script src="https://github.com/saymedia/angularjs-humanize/raw/master/bower_components/angularjs-humanize/src/angular-humanize.js"></script>

Add it as a dependency to your angularjs project:

var app = angular.module("myApp", ['angular-humanize']);

Supported Filters

angularjs-humanize currently supports the following filters, mapping to the humanize functions of the same name:

License

Copyright © 2014 Say Media Ltd. All Rights Reserved. See the LICENSE file for distribution terms.