{"id":13589085,"url":"https://github.com/seanghay/split-khmer","last_synced_at":"2025-07-13T04:32:10.639Z","repository":{"id":57698888,"uuid":"507324245","full_name":"seanghay/split-khmer","owner":"seanghay","description":"Split Khmer sentence into an array of words.","archived":false,"fork":false,"pushed_at":"2022-07-05T08:19:46.000Z","size":739,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T06:08:49.223Z","etag":null,"topics":["cambodia","khmer"],"latest_commit_sha":null,"homepage":"https://split-khmer.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seanghay.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-25T13:53:47.000Z","updated_at":"2024-02-09T02:29:24.000Z","dependencies_parsed_at":"2022-08-26T14:11:49.168Z","dependency_job_id":null,"html_url":"https://github.com/seanghay/split-khmer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fsplit-khmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fsplit-khmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fsplit-khmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fsplit-khmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanghay","download_url":"https://codeload.github.com/seanghay/split-khmer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225855955,"owners_count":17534967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cambodia","khmer"],"created_at":"2024-08-01T16:00:22.544Z","updated_at":"2024-11-22T07:12:42.196Z","avatar_url":"https://github.com/seanghay.png","language":"TypeScript","funding_links":[],"categories":["Awesome Khmer Language"],"sub_categories":["2. Toolkit"],"readme":"![split-khmer](https://user-images.githubusercontent.com/15277233/175805541-d59f7720-c24c-42d7-8e7c-5549e22b5ef9.png)\n\n# Split Khmer words\n\nSplit Khmer sentence into an array of words.\n\n[![test](https://github.com/seanghay/split-khmer/actions/workflows/test.yml/badge.svg)](https://github.com/seanghay/split-khmer/actions/workflows/test.yml)\n[![version](https://img.shields.io/npm/v/split-khmer)](https://npmjs.com/package/split-khmer)\n\n\n## Installation\n\n```\nnpm i split-khmer\n```\n\n## Usage\n\n```js\n\n// Node.js 16+ ESM\nimport { split } from 'split-khmer'\n\n// Browser Module\nimport { split } from 'https://unpkg.com/split-khmer@latest/dist/index.mjs'\n\n// CommonJS\nconst { split } = require('split-khmer') \n\nconst values = split('កូនខ្មែរអាចធ្វើបាន');\n\nconsole.log(values);\n// [ 'កូន', 'ខ្មែរ', 'អាច', 'ធ្វើ', 'បាន' ]\n\n```\n\n## ⚠️ Note\n\n`Intl.Segmenter` is available only in Node.js 16 and latest Chrome browser. You need to use a polyfill to make it available to older browsers.\n\nWe provided a [**BreakIterator**](./wasm/break_iterator_km.wasm) binary for you in order to create a polyfill for Khmer language. The binary file will be in `./dist/break_iterator_km.wasm`.\n\ne.g. The distibuted url will be `https://unpkg.com/split-khmer@0.0.3/dist/break_iterator_km.wasm`\n\nUse this library as a polyfill: [intl-segmenter-polyfill](https://github.com/surferseo/intl-segmenter-polyfill)\n\n### Browser Supports\n\nhttps://caniuse.com/mdn-javascript_builtins_intl_segmenter_segment\n\n## License \n\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanghay%2Fsplit-khmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanghay%2Fsplit-khmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanghay%2Fsplit-khmer/lists"}