Skip to content

Pluralize or singularize any word based on a count

License

Notifications You must be signed in to change notification settings

joeprisk/pluralize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pluralize

Angular adaption of the great work by @blakeembrey

NPM version Build status Test coverage

Return a pluralized or singularized word based on the input string.

Installation

npm install pluralize --save
bower install pluralize --save

Angular

angular.module('MyApp', ['jp.pluralise']);

angular.module('MyApp')
  .controller('MyController',ctrl)

  ctrl.$inject = ['pluralise'];

  function ctrl(pluralise) {

    // use the pluraliser


  }

<script> tag

<script src="pluralize.js"></script>

Usage

pluralise.pluralise('fox'); //=> "foxes"
pluralise.singularise('foxes'); //=> "fox"

License

MIT

About

Pluralize or singularize any word based on a count

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%