{"_id":"@marijn/find-cluster-break@1.0.4","bugs":{"url":"https://code.haverbeke.berlin/marijn/find-cluster-break/issues"},"dist":{"shasum":"42c2aea61cda307cdb1347444792452d7b5dbfb4","tarball":"http://registry-npm.ywwl.com/@marijn/find-cluster-break/download/@marijn/find-cluster-break-1.0.4.tgz","fileCount":10,"integrity":"sha512-Wy0V7+SGUjnF9/TkiM1hKVDPj7jKXduPNboMVtHTA8dySMURWqfg/JZ9E2Sq8JgSJmkl7k7Qe9FLeMSrSraWmQ==","signatures":[{"sig":"MEQCIACZYNsfeLDAYq90KpifXD3rnOlPohqZx/V9N/RZN/CoAiAtbOx2+G8U7W5BffSUrV+SgXL/8VWV5JW6DxUa0XZ2XA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDAddHG55UkOcodrqS6h7RjBkwerfbcvgfRcQk3zJnAJgIgH/426vkz5EVznbV+8SyMboQx8unmS7KclzuLJ5HuRo4="}],"unpackedSize":15261,"size":4960,"noattachment":false,"key":"/@marijn/find-cluster-break/-/@marijn/find-cluster-break-1.0.4.tgz"},"main":"src/index.js","name":"@marijn/find-cluster-break","type":"module","types":"./src/index.d.ts","author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"exports":{"import":"./src/index.js","require":"./dist/index.cjs"},"gitHead":"098961685c964055851434a40cbffb815057cc06","license":"MIT","scripts":{"test":"mocha test/*.js","prepare":"rollup -c"},"version":"1.0.4","_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"homepage":"https://code.haverbeke.berlin/marijn/find-cluster-break","keywords":["unicode","grapheme","cluster","break"],"repository":{"url":"git+https://code.haverbeke.berlin/marijn/find-cluster-break.git","type":"git"},"_npmVersion":"11.9.0","description":"Find the position of grapheme cluster breaks in a string","directories":{},"maintainers":[{"name":"marijn","email":"marijn@haverbeke.berlin"}],"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.7.3","rollup":"^4.28.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/find-cluster-break_1.0.4_1787309772967_0.333958621640559"},"readme":"# @marijn/find-cluster-break\n\nSmall JavaScript module for finding grapheme cluster breaks in\nstrings, scanning from a given position.\n\n```javascript\nimport {findClusterBreak} from \"@marijn/find-cluster-break\"\nconsole.log(findClusterBreak(\"💪🏽🦋\", 0))\n// → 4\n```\n\nThis code is open source, released under an MIT license.\n    \n## Documentation\n\n**`findClusterBreak`**`(str: string, pos: number, forward = true, includeExtending = true): number`\n\nReturns a next grapheme cluster break _after_ (not equal to) `pos`,\nif `forward` is true, or before otherwise. Returns `pos` itself if no\nfurther cluster break is available in the string. Moves across\nsurrogate pairs, extending characters (when `includeExtending` is\ntrue, which is the default), characters joined with zero-width joiners,\nand flag emoji.\n\n**`isExtendingChar`**`(code: number): boolean`\n\nQuery whether the given character has a `Grapheme_Cluster_Break` value\nof `Extend` in Unicode.\n","publish_time":1787309773060,"_cnpm_publish_time":1787309773060,"dist-tags":{"latest":"1.0.4"}}