rsocci / ember-ordinal-indicators

Helper to obtain the ordinal number suffix for a number

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-ordinal-indicators

Build Status

Helper for obtaining the ordinal indicator of a number. It returns one of the following suffixes: st, nd, rd, or th.

Installation

npm install ember-ordinal-indicators --save-dev

with ember-cli:

ember install ember-ordinal-indicators

Usage

{{ordinal-for <number>}}

Examples:

{{ordinal-for 1}} {{! => st}}
{{ordinal-for 2}} {{! => nd}}
{{ordinal-for 3}} {{! => rd}}

Development

  • git clone https://github.com/rsocci/ember-ordinal-indicators.git
  • npm install

Running Tests

  • ember test
  • ember test --server

For more information on using ember-cli, visit http://ember-cli.com/.

About

Helper to obtain the ordinal number suffix for a number

License:MIT License


Languages

Language:JavaScript 80.8%Language:HTML 19.2%