plur

WebJar for plur

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

3.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

plur
WebJar for plur
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/plur

Скачать plur

Имя Файла Размер
plur-3.1.1.pom
plur-3.1.1.jar 4 KB
plur-3.1.1-sources.jar 22 bytes
plur-3.1.1-javadoc.jar 22 bytes
Обзор

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : irregular-plurals jar [2.0.0,3)

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

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

plur

Pluralize a word

Install

$ npm install plur

Usage

const plur = require('plur');

plur('unicorn', 4);
//=> 'unicorns'

plur('puppy', 2);
//=> 'puppies'

plur('box', 2);
//=> 'boxes'

plur('cactus', 2);
//=> 'cacti'

API

plur(word, plural?, count)

word

Type: string

Word to pluralize.

plural

Type: string
Default:

  • Irregular nouns will use this list.
  • Words ending in s, x, z, ch, sh will be pluralized with -es (eg. foxes).
  • Words ending in y that are preceded by a consonant will be pluralized by replacing y with -ies (eg. puppies).
  • All other words will have "s" added to the end (eg. days).

Pluralized word.

The plural suffix will match the case of the last letter in the word.

This option is only for extreme edge-cases. You probably won't need it.

count

Type: number

Count to determine whether to use singular or plural.

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

Версия
3.1.1
2.1.2
2.0.0
1.0.0