Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

plur

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plur

Pluralize a word

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6M
increased by6.74%
Maintainers
1
Weekly downloads
 
Created

What is plur?

The plur npm package is designed to easily pluralize words. It allows you to get the plural form of a word based on the count provided. This can be particularly useful in applications where you need to display text that dynamically changes based on a quantity (e.g., item counts, messages, etc.).

What are plur's main functionalities?

Pluralizing a word

This feature allows you to pluralize a single word based on a count. If the count is more than one, it returns the plural form of the word.

"const plur = require('plur');\nconsole.log(plur('unicorn', 2)); // 'unicorns'"

Custom plural forms

This feature allows you to specify a custom plural form for a word. This is useful for words that do not follow regular pluralization rules.

"const plur = require('plur');\nconsole.log(plur('radius', 2, 'radii')); // 'radii'"

Other packages similar to plur

Keywords

FAQs

Package last updated on 04 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc