JSPM

ember-pluralize

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q61887F
  • License MIT

An addon for pluralizing words based on given count

Package Exports

  • ember-pluralize

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-pluralize) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ember-pluralize

Build
Status

Word pluralizer based on count.

Installation

npm install ember-pluralize --save-dev

with ember-cli:

ember install ember-pluralize

Usage

{{pluralize-word 2 "dancing penguins"}} {{! => 2 dancing penguins}}
{{pluralize-word 3 "octopus"}} {{! => 3 octopi}}

Pass omitCount=true option to print the pluralized word without the count.

{{pluralize-word 5 "hamster" omitCount=true}} {{! => hamsters}}

Development

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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