Socket
Socket
Sign inDemoInstall

pluralize

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pluralize - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "pluralize",
"version": "1.2.0",
"version": "1.2.1",
"description": "Pluralize and singularize any word",

@@ -5,0 +5,0 @@ "main": "pluralize.js",

@@ -336,3 +336,3 @@ /* global define */

[/(^[pl]|zomb|^(?:neck)?t|[aeo][lt]|cut)ies$/i, '$1ie'],
[/([^c][eor]n|smil)ies$/i, '$1ey'],
[/(\b(?:mon|smil))ies$/i, '$1ey'],
[/(m|l)ice$/i, '$1ouse'],

@@ -339,0 +339,0 @@ [/(seraph|cherub)im$/i, '$1'],

@@ -8,3 +8,3 @@ # Pluralize

Return a pluralized or singularized word based on the input string.
> Pluralize and singularize any word.

@@ -38,2 +38,6 @@ ## Installation

## Why?
This module uses a pre-defined list of rules, applied in order, to singularize or pluralize a given word. There are many cases where this is useful, such as any automation based on user input. For applications where the word(s) are known ahead of time, you can use a simple ternary (or function) which would be a much lighter alternative.
## Usage

@@ -40,0 +44,0 @@

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