angularjs-humanize

WebJar for angularjs-humanize

Лицензия

Лицензия

MIT
Категории

Категории

JavaScript Языки программирования Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

angularjs-humanize
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

angularjs-humanize
WebJar for angularjs-humanize
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/saymedia/angularjs-humanize

Скачать angularjs-humanize

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angularjs-humanize/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angularjs-humanize</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angularjs-humanize/
implementation 'org.webjars.bower:angularjs-humanize:0.0.1'
// https://jarcasting.com/artifacts/org.webjars.bower/angularjs-humanize/
implementation ("org.webjars.bower:angularjs-humanize:0.0.1")
'org.webjars.bower:angularjs-humanize:jar:0.0.1'
<dependency org="org.webjars.bower" name="angularjs-humanize" rev="0.0.1">
  <artifact name="angularjs-humanize" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angularjs-humanize', version='0.0.1')
)
libraryDependencies += "org.webjars.bower" % "angularjs-humanize" % "0.0.1"
[org.webjars.bower/angularjs-humanize "0.0.1"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.bower : angular jar [1.2.7,1.3)
org.webjars.bower » humanize jar [0.0.9,0.1)

Модули Проекта

Данный проект не имеет модулей.

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="bower_components/humanize/humanize.js"></script>
<script src="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:

  • humanizeFilesize, which transforms a number or number-like string into a human-readable filesize such as "225.35 KB"
  • humanizeNumberFormat, which transforms a number or number-like string into a formatted number such as "1,225.35"
  • humanizeOrdinal, which transforms an integer into an ordinal such as "32nd" or "101st"
  • humanizeInt, which transforms an integer into an comma separed value such as "16,354,646,546"
  • humanizeNaturalDay, which transforms an integer representing an epoch into a date representation or one of "yesterday", "today", or "tomorrow"
  • humanizeRelativeTime, which transforms an integer representing an epoch into a string such as "about an hour ago" or "in a month"

License

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

org.webjars.bower

Say Media

Версии библиотеки

Версия
0.0.1