{"name":"@isaacs/string-locale-compare","version":"1.0.0","main":"index.js","description":"Compare strings with Intl.Collator if available, falling back to String.localeCompare otherwise","repository":{"type":"git","url":"git+https://github.com/isaacs/string-locale-compare.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^15.0.9"},"gitHead":"3a53b04c69f5020e66b3d59868657527c50d7e45","bugs":{"url":"https://github.com/isaacs/string-locale-compare/issues"},"homepage":"https://github.com/isaacs/string-locale-compare#readme","_id":"@isaacs/string-locale-compare@1.0.0","_nodeVersion":"16.5.0","_npmVersion":"7.23.0","dist":{"integrity":"sha512-R3acQDJm066Tr5Gb+OhiEkKyy94F2p6dkcUI6J8KQuinqgg5HszX/H4vepKxREDbiVR9pGKOD9Jo+RTDux+zLA==","shasum":"2bbd680395d205a022b76aa01910f6d1c48cf948","tarball":"http://registry-npm.ywwl.com/@isaacs/string-locale-compare/download/@isaacs/string-locale-compare-1.0.0.tgz","fileCount":4,"unpackedSize":2414,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGQIb168FJrWHmlY+gGW7kR+4bHXzldRZ3FKNI7CTGb+AiBJ7Hl2nJ5gq2KksgcDvjupCGIDW8l/XAFXFmHB9QNcFA=="}],"size":1372,"noattachment":false,"key":"/@isaacs/string-locale-compare/-/@isaacs/string-locale-compare-1.0.0.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string-locale-compare_1.0.0_1632261223207_0.21290938050693864"},"_hasShrinkwrap":false,"readme":"# @isaacs/string-locale-compare\n\nCompare strings with Intl.Collator if available, falling back to\nString.localeCompare otherwise.\n\nThis also forces the use of a specific locale, to avoid using the system\nlocale, which is non-deterministic.\n\n## USAGE\n\n```js\nconst stringLocaleCompare = require('@isaacs/string-locale-compare')\n\nmyArrayOfStrings.sort(stringLocaleCompare('en'))\n\n// can also pass extra options\nmyArrayOfNumericStrings.sort(stringLocaleCompare('en', { numeric: true }))\n```\n\n## API\n\n`stringLocaleCompare(locale, [options])`\n\nLocale is required, must be a valid locale string.\n\nOptions is optional.  The following options are supported:\n\n* `sensitivity`\n* `numeric`\n* `ignorePunctuation`\n* `caseFirst`\n","publish_time":1632261223341,"_cnpm_publish_time":1632261223341,"dist-tags":{"latest":"1.1.0"}}