3.2.2 • Published 6 months ago

pluralizer.js v3.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

✏️ Pluralizer.js

NPM Package Version Code coverage badge Software Liscense GitHub Repo stars GitHub issues

Pluralizer.js is a simple zero-dependency lightweight type-safe pluralizer library for any project!

⭐ Please give this project a star if you like it, so others can see, use, and contribute to it!

📦 Installation

You can install pluralizer.js with NPM, Yarn, or PNPM.

# NPM
$ npm install --save pluralizer.js
# Yarn
$ yarn add pluralizer.js
# PNPM
$ pnpm install --save pluralizer.js

The output should look something like this:

$ npm install --save pluralizer.js
> added 1 package, and audited > X packages in 5s
> 
> X packages are looking for funding
>   run `npm fund` for details
> 
> found X vulnerabilities
$ # Pluralizer.js is successfully installed!

👨‍💻 Usage

Just import the function and the pluralizer and use 'em!

const numberOfCats = 3
const myPluralizedString =
    pluralNew(['s'])`I have ${numberOfCats} cat${_FP}!`

console.log(myPluralizedString) // "I have 3 cats!"

For our documentation about our other functions, see their JSDoc's @example until we create proper documentation. Thank you for your patience

3.2.2

6 months ago

3.2.1

6 months ago

1.1.0

6 months ago

3.2.0

6 months ago

3.1.0

6 months ago

3.0.0

6 months ago

2.0.0

6 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago