{"_id":"@cjser/plur__v5_1_0","name":"@cjser/plur__v5_1_0","dist-tags":{"latest":"5.1.0-cjser.2"},"versions":{"5.1.0-cjser.2":{"name":"@cjser/plur__v5_1_0","version":"5.1.0-cjser.2","description":"Pluralize a word","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["plural","plurals","pluralize","singular","count","word","string","irregular","noun","nouns"],"dependencies":{"irregular-plurals":"^3.3.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.18.0","xo":"^0.46.4"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"5.1.0","cjserVersion":2,"original":{"name":"plur","version":"5.1.0","exports":"./index.js","repository":"sindresorhus/plur","dependencies":{"irregular-plurals":"^3.3.0"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/plur__v5_1_0@5.1.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-Eib+MS/GtjpZPjks+0FGJuBozQqijtKEtxw6MsuMy7rjPj4sNEtVgs+7GUSfFawZIb6hsVImeX+moHDj4CqI3w==","shasum":"fa58b4290aa345e9816f184c2a820325b8d458bb","tarball":"https://registry.npmjs.org/@cjser/plur__v5_1_0/-/plur__v5_1_0-5.1.0-cjser.2.tgz","fileCount":6,"unpackedSize":8675,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCYXFAYNg4KVppMqr77M+i3pzRffnqkLAbENUk+zzLTSAIhANF1BOmCyt8cDZinoWJTha2ifF+zF3qw1bbzjNyNrrqI"}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plur__v5_1_0_5.1.0-cjser.2_1778159629717_0.6701354520716711"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:13:49.615Z","5.1.0-cjser.2":"2026-05-07T13:13:49.850Z","modified":"2026-05-07T13:13:50.098Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Pluralize a word","keywords":["plural","plurals","pluralize","singular","count","word","string","irregular","noun","nouns"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","readme":"# plur\n\n> Pluralize a word\n\n## Install\n\n```sh\nnpm install plur\n```\n\n## Usage\n\n```js\nimport plur from 'plur';\n\nplur('rainbow');\n//=> 'rainbows'\n\nplur('unicorn', 4);\n//=> 'unicorns'\n\nplur('puppy', 2);\n//=> 'puppies'\n\nplur('box', 2);\n//=> 'boxes'\n\nplur('cactus', 2);\n//=> 'cacti'\n```\n\n## API\n\n### plur(word, plural?, count?)\n\n#### word\n\nType: `string`\n\nThe word to pluralize.\n\n#### plural\n\nType: `string`\\\nDefault:\n\n- Irregular nouns will use this [list](https://github.com/sindresorhus/irregular-plurals/blob/main/irregular-plurals.json).\n- Words ending in *s*, *x*, *z*, *ch*, *sh* will be pluralized with *-es* (eg. *foxes*).\n- Words ending in *y* that are preceded by a consonant will be pluralized by replacing *y* with *-ies* (eg. *puppies*).\n- All other words will have \"s\" added to the end (eg. *days*).\n\nExplicitly provide the pluralized word.\n\nThe plural suffix will match the case of the last letter in the word.\n\nThis option is only for extreme edge-cases. You probably won't need it.\n\n#### count\n\nType: `number`\n\nThe count to determine whether to use singular or plural. If omitted, defaults to plural.\n\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/plur\n","readmeFilename":"readme.md","_rev":"1-c8a588303b8d11e6a1d3b26abf46db6c"}