- 📦 Installation
- ℹ️ Usage
- 💡 Examples
Pluralizing text is a very annoying task & this library aims to provide a lightweight, friendly API to achieve it.
yarn add @daniakash/pluralize
# or
npm i @daniakash/pluralize
import { pluralize } from "@daniakash/pluralize";
pluralize("apple", count); //=> apples
pluralize("child", count, { pluralSuffix: "ren" }); //=> children
pluralize("sheep", count, { pluralTerm: "sheep" }); //=> sheep
MIT © DaniAkash