{
  "_id": "@marijn/find-cluster-break",
  "maintainers": [
    {
      "name": "marijn",
      "email": "marijn@haverbeke.berlin"
    }
  ],
  "keywords": [
    "unicode",
    "grapheme",
    "cluster",
    "break"
  ],
  "dist-tags": {
    "latest": "1.0.3"
  },
  "author": {
    "name": "Marijn Haverbeke",
    "email": "marijn@haverbeke.berlin"
  },
  "_rev": "4-4642befc2c1681c5a2f847a05220fae6",
  "description": "Find the position of grapheme cluster breaks in a string",
  "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",
  "repository": {
    "type": "git",
    "url": "git+https://code.haverbeke.berlin/marijn/find-cluster-break.git"
  },
  "bugs": {
    "url": "https://code.haverbeke.berlin/marijn/find-cluster-break/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "@marijn/find-cluster-break",
      "version": "1.0.0",
      "keywords": [
        "unicode",
        "grapheme",
        "cluster",
        "break"
      ],
      "author": {
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "_id": "@marijn/find-cluster-break@1.0.0",
      "maintainers": [
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "homepage": "https://github.com/marijnh/find-cluster-break#readme",
      "bugs": {
        "url": "https://github.com/marijnh/find-cluster-break/issues"
      },
      "dist": {
        "shasum": "614d98092dd8d1203faa4be22a9912b711f6b972",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@marijn/find-cluster-break/-/find-cluster-break-1.0.0.tgz",
        "fileCount": 5,
        "integrity": "sha512-0YSzy7M9mBiK+h1m33rD8vZOfaO8leG6CY3+Q+1Lig86snkc8OAHQVAdndmnXMWJlVIH6S7fSZVVcjLcq6OH1A==",
        "signatures": [
          {
            "sig": "MEQCICMtskQrJhRz8H9NHwUreOkf7koWYAc6Zel9noTCSIWxAiBPeak/XI8glyNnkYKySDTnVf0R4RDB4WbaoxKzJMN8aQ==",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 7322
      },
      "main": "src/index.js",
      "type": "module",
      "types": "./src/index.d.ts",
      "gitHead": "233293cd657c254a20c677ece51e55dd7f9923e3",
      "scripts": {
        "test": "mocha test/*.js"
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "repository": {
        "url": "git+https://github.com/marijnh/find-cluster-break.git",
        "type": "git"
      },
      "_npmVersion": "10.8.0",
      "description": "Find the position of grapheme cluster breaks in a string",
      "directories": {},
      "_nodeVersion": "20.13.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "mocha": "^10.7.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/find-cluster-break_1.0.0_1728240260812_0.04868973051601633",
        "host": "s3://npm-registry-packages"
      }
    },
    "1.0.1": {
      "name": "@marijn/find-cluster-break",
      "version": "1.0.1",
      "keywords": [
        "unicode",
        "grapheme",
        "cluster",
        "break"
      ],
      "author": {
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "_id": "@marijn/find-cluster-break@1.0.1",
      "maintainers": [
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "homepage": "https://github.com/marijnh/find-cluster-break#readme",
      "bugs": {
        "url": "https://github.com/marijnh/find-cluster-break/issues"
      },
      "dist": {
        "shasum": "930cfea85410dc70f3e5a5d7882243b1f1b4bd89",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@marijn/find-cluster-break/-/find-cluster-break-1.0.1.tgz",
        "fileCount": 8,
        "integrity": "sha512-7fYyBEBOve5UILdtTr5GnfObe5Jmi8wKwooZ6da1zCr5HZAqweDqvG4ZryVRBjfUDQr2fS8VCnBMiSCX77qt9A==",
        "signatures": [
          {
            "sig": "MEQCIGQO1BDnm0j2Hty6LnKMAXxl3JhoW5j6B8CDEEgInwGFAiB2ug4VBNn1czvZI8RdSe7bacAW9PydNAkdASUG5jrrLw==",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 9347
      },
      "main": "src/index.js",
      "type": "module",
      "types": "./src/index.d.ts",
      "exports": {
        "import": "./src/index.js",
        "require": "./dist/index.cjs"
      },
      "gitHead": "fe4e3851163ff5345839bfd3f901287af3825e6f",
      "scripts": {
        "test": "mocha test/*.js",
        "prepare": "rollup -c"
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "repository": {
        "url": "git+https://github.com/marijnh/find-cluster-break.git",
        "type": "git"
      },
      "_npmVersion": "10.9.0",
      "description": "Find the position of grapheme cluster breaks in a string",
      "directories": {},
      "_nodeVersion": "20.13.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "mocha": "^10.7.3",
        "rollup": "^4.28.1"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/find-cluster-break_1.0.1_1733758809755_0.7137711834746006",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "1.0.2": {
      "name": "@marijn/find-cluster-break",
      "version": "1.0.2",
      "keywords": [
        "unicode",
        "grapheme",
        "cluster",
        "break"
      ],
      "author": {
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "_id": "@marijn/find-cluster-break@1.0.2",
      "maintainers": [
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "homepage": "https://github.com/marijnh/find-cluster-break#readme",
      "bugs": {
        "url": "https://github.com/marijnh/find-cluster-break/issues"
      },
      "dist": {
        "shasum": "775374306116d51c0c500b8c4face0f9a04752d8",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz",
        "fileCount": 9,
        "integrity": "sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==",
        "signatures": [
          {
            "sig": "MEQCIBgLo6/lgUzByto+Y3oUY6rF2+psOJMqYgX5PyYFrXGOAiBMoDZLD1mzgACWqkmUCk0sSkbc7taICqWMEYgsw6rs5A==",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 13551
      },
      "main": "src/index.js",
      "type": "module",
      "types": "./src/index.d.ts",
      "exports": {
        "import": "./src/index.js",
        "require": "./dist/index.cjs"
      },
      "gitHead": "b0b1f10aa0c131cf53f2dc347a09544b4ae87324",
      "scripts": {
        "test": "mocha test/*.js",
        "prepare": "rollup -c"
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "repository": {
        "url": "git+https://github.com/marijnh/find-cluster-break.git",
        "type": "git"
      },
      "_npmVersion": "10.9.0",
      "description": "Find the position of grapheme cluster breaks in a string",
      "directories": {},
      "_nodeVersion": "20.13.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "mocha": "^10.7.3",
        "rollup": "^4.28.1"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/find-cluster-break_1.0.2_1733760931639_0.31506004428107537",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "1.0.3": {
      "name": "@marijn/find-cluster-break",
      "version": "1.0.3",
      "type": "module",
      "description": "Find the position of grapheme cluster breaks in a string",
      "main": "src/index.js",
      "exports": {
        "import": "./src/index.js",
        "require": "./dist/index.cjs"
      },
      "scripts": {
        "test": "mocha test/*.js",
        "prepare": "rollup -c"
      },
      "repository": {
        "type": "git",
        "url": "git+https://code.haverbeke.berlin/marijn/find-cluster-break.git"
      },
      "keywords": [
        "unicode",
        "grapheme",
        "cluster",
        "break"
      ],
      "author": {
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://code.haverbeke.berlin/marijn/find-cluster-break/issues"
      },
      "homepage": "https://code.haverbeke.berlin/marijn/find-cluster-break",
      "devDependencies": {
        "mocha": "^10.7.3",
        "rollup": "^4.28.1"
      },
      "gitHead": "2daa8b92bca5115dccf68bc03625f8a268e38b21",
      "types": "./src/index.d.ts",
      "_id": "@marijn/find-cluster-break@1.0.3",
      "_nodeVersion": "22.20.0",
      "_npmVersion": "11.9.0",
      "dist": {
        "integrity": "sha512-FY+MKLBoTsLNJF/eLWaOsXGdz6uh3Iu1axjPf6TUq92IYumcTcXWHoS747JARLkcdlJ/Waiaxc5wQfFO8jC6NA==",
        "shasum": "bdbe907e00c17c84e33fc51b1519d9aa211e7e8e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@marijn/find-cluster-break/-/find-cluster-break-1.0.3.tgz",
        "fileCount": 9,
        "unpackedSize": 13574,
        "signatures": [
          {
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
            "sig": "MEYCIQCSbjeto0rnTSiQ9A1WM9Pdt4VEdOiow4KCl3anUf5n9QIhAOQoLOp5EEpEGQbb8jxoOemcQsTsgnP90GusZh6eXjkN"
          }
        ]
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages-npm-production",
        "tmp": "tmp/find-cluster-break_1.0.3_1782556700046_0.6179388401365882"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "@marijn/find-cluster-break",
  "time": {
    "created": "2024-10-06T18:44:20.701Z",
    "modified": "2026-07-15T20:15:10.374Z",
    "1.0.0": "2024-10-06T18:44:21.031Z",
    "1.0.1": "2024-12-09T15:40:09.949Z",
    "1.0.2": "2024-12-09T16:15:31.824Z",
    "1.0.3": "2026-06-27T10:38:20.193Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://code.haverbeke.berlin/marijn/find-cluster-break"
}