{"id":28427862,"url":"https://github.com/hwahyeon/korean-stroke","last_synced_at":"2026-06-23T22:04:05.051Z","repository":{"id":223685253,"uuid":"761209870","full_name":"hwahyeon/korean-stroke","owner":"hwahyeon","description":"A JavaScript library for calculating the total stroke count of Korean characters in a string","archived":false,"fork":false,"pushed_at":"2025-08-08T23:51:26.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T01:16:51.358Z","etag":null,"topics":["character-analysis","hangeul","hangul","javascript","korean","npm","stroke"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/korean-stroke","language":"JavaScript","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/hwahyeon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-21T12:55:46.000Z","updated_at":"2025-08-08T23:51:30.000Z","dependencies_parsed_at":"2024-02-21T15:11:25.276Z","dependency_job_id":"58d0b13e-5b23-4816-8733-fe79131c137c","html_url":"https://github.com/hwahyeon/korean-stroke","commit_stats":null,"previous_names":["hwahyeon/korean-stroke"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hwahyeon/korean-stroke","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwahyeon%2Fkorean-stroke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwahyeon%2Fkorean-stroke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwahyeon%2Fkorean-stroke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwahyeon%2Fkorean-stroke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hwahyeon","download_url":"https://codeload.github.com/hwahyeon/korean-stroke/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwahyeon%2Fkorean-stroke/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276656601,"owners_count":25681150,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["character-analysis","hangeul","hangul","javascript","korean","npm","stroke"],"created_at":"2025-06-05T12:30:41.078Z","updated_at":"2025-09-23T22:11:47.085Z","avatar_url":"https://github.com/hwahyeon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# korean-stroke\n**korean-stroke** is a lightweight JavaScript library that calculates the total stroke count of Korean (Hangul) characters in a string.\n\n## Installation\n```bash\nnpm install korean-stroke\n```\n\n## Usage\n\n### CommonJS\n\n```javascript\nconst strokeCounter = require('korean-stroke');\n\nconsole.log(strokeCounter('안녕')); // 11\n```\n\n### ES Modules\n```javascript\nimport strokeCounter from 'korean-stroke'\n\nconsole.log(strokeCounter('안녕')); // 11\n```\n\n**Note**: The `strokeCounter` function calculates the stroke count for Korean characters only. Any non-Korean characters in the input string will not be counted towards the total stroke count.\n\n## API\n\n### `strokeCounter(string)`\n\n- **Parameters**\n  - `string` (String): The Korean string to calculate strokes for.\n- **Returns**\n  - Number: Total stroke count of Korean characters in the input string.\n\n## License\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwahyeon%2Fkorean-stroke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhwahyeon%2Fkorean-stroke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwahyeon%2Fkorean-stroke/lists"}