{"name":"plur","version":"6.0.0","description":"Pluralize a word","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/plur.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["plural","plurals","pluralize","singular","count","word","string","irregular","noun","nouns"],"dependencies":{"irregular-plurals":"^4.2.0"},"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.3"},"gitHead":"1feff0d3df7cece21087ca20a5ffaeac524dc868","types":"./index.d.ts","_id":"plur@6.0.0","bugs":{"url":"https://github.com/sindresorhus/plur/issues"},"homepage":"https://github.com/sindresorhus/plur#readme","_nodeVersion":"20.19.5","_npmVersion":"11.6.1","dist":{"integrity":"sha512-Y9wXQivjRX0REtwpA9+n0bYYypWESn3cWtW2vazymw711qn+AQXxzZjRqhANYGBLIMC1UzVdpwe/1hHQwHfwng==","shasum":"96e935773f42baf91fa7ded87b875cffc9f93139","tarball":"http://registry-npm.ywwl.com/plur/download/plur-6.0.0.tgz","fileCount":5,"unpackedSize":5120,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB8Y5ATlHSx/bcvm3YNMqXH9x1irjc8RwSiX1Vin5TXTAiBBGqzR71wbu2LflTq3O/ZlC42tIPeNQ9IsiDwTNeQgDQ=="}],"size":2213,"noattachment":false,"key":"/plur/-/plur-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plur_6.0.0_1762075246374_0.197886947444317"},"_hasShrinkwrap":false,"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","publish_time":1762075246590,"_cnpm_publish_time":1762075246590,"dist-tags":{"latest":"6.0.0"}}