{"id":20014771,"url":"https://github.com/pepebecker/pinyin-split","last_synced_at":"2025-05-04T22:31:20.532Z","repository":{"id":57324531,"uuid":"88677685","full_name":"pepebecker/pinyin-split","owner":"pepebecker","description":"Split up any kind of Pinyin into an array of syllables.","archived":false,"fork":false,"pushed_at":"2024-08-14T11:42:27.000Z","size":86,"stargazers_count":11,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T12:07:27.674Z","etag":null,"topics":["chinese","hacktoberfest","mandarin","pinyin","split"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pinyin-split","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pepebecker.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":"2017-04-18T22:58:35.000Z","updated_at":"2024-01-30T15:02:38.000Z","dependencies_parsed_at":"2022-09-04T12:52:07.009Z","dependency_job_id":null,"html_url":"https://github.com/pepebecker/pinyin-split","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepebecker","download_url":"https://codeload.github.com/pepebecker/pinyin-split/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252408172,"owners_count":21743066,"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":["chinese","hacktoberfest","mandarin","pinyin","split"],"created_at":"2024-11-13T07:43:53.437Z","updated_at":"2025-05-04T22:31:20.240Z","avatar_url":"https://github.com/pepebecker.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pinyin Split\n\n[![npm version](https://img.shields.io/npm/v/pinyin-split.svg)](https://www.npmjs.com/package/pinyin-split)\n[![Travis Build Status](https://travis-ci.org/pepebecker/pinyin-split.svg)](https://travis-ci.org/pepebecker/pinyin-split)\n[![dependency status](https://img.shields.io/david/pepebecker/pinyin-split.svg)](https://david-dm.org/pepebecker/pinyin-split)\n[![dev dependency status](https://img.shields.io/david/dev/pepebecker/pinyin-split.svg)](https://david-dm.org/pepebecker/pinyin-split#info=devDependencies)\n[![ISC-licensed](https://img.shields.io/github/license/pepebecker/pinyin-split.svg)](https://choosealicense.com/licenses/isc/)\n\n## Install\n\n```shell\nnpm install pinyin-split\n```\n\n## Usage\n\n```js\nimport split from 'pinyin-split'\n\nconsole.log(split('本：wodemaoxihuanheniunai！'))\n// ['wo', 'de', 'mao', 'xi', 'huan', 'he', 'niu', 'nai']\n\nconsole.log(split('本：wo de mao xihuan he niunai！'))\n// ['wo', 'de', 'mao', 'xi', 'huan', 'he', 'niu', 'nai']\n\n// return everything and wrap pinyin into lists\nconsole.log(split('本：ni jiao shenme mingzi？', true, true))\n// ['本：'['ni'], ' ', ['jiao'], ' ', ['shen'], ['me'], ' ', ['ming'], ['zi'], '？']\n\n// return everything and don't wrap pinyin into lists\nconsole.log(split('Nǐ huì shuō Yīngwén ma?', true))\n// ['Nǐ', ' ', 'huì', ' ', 'shuō', ' ', 'Yīng', 'wén', ' ', 'ma', '?']\n```\n\n## Related\n\n- [`pinyin-utils`](https://github.com/pepebecker/pinyin-utils)\n- [`find-hanzi`](https://github.com/pepebecker/find-hanzi)\n- [`hsk-words`](https://github.com/pepebecker/hsk-words)\n- [`cedict`](https://github.com/pepebecker/cedict)\n- [`mdbg`](https://github.com/pepebecker/mdbg)\n- [`pinyin-or-hanzi`](https://github.com/pepebecker/pinyin-or-hanzi)\n- [`hanzi-to-pinyin`](https://github.com/pepebecker/hanzi-to-pinyin)\n- [`pinyin-convert`](https://github.com/pepebecker/pinyin-convert)\n- [`pinyin-rest`](https://github.com/pepebecker/pinyin-rest)\n- [`pinyin-api`](https://github.com/pepebecker/pinyin-api)\n- [`pinyin-bot-core`](https://github.com/pepebecker/pinyin-bot-core)\n- [`pinyin-telegram`](https://github.com/pepebecker/pinyin-telegram)\n- [`pinyin-messenger`](https://github.com/pepebecker/pinyin-messenger)\n- [`pinyin-line`](https://github.com/pepebecker/pinyin-line)\n- [`pinyin-chrome`](https://github.com/pepebecker/pinyin-chrome)\n- [`pinyin-cli`](https://github.com/pepebecker/pinyin-cli)\n- [`hanzi-cli`](https://github.com/pepebecker/hanzi-cli)\n\n## Contributing\n\nIf you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/pepebecker/pinyin-split/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepebecker%2Fpinyin-split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepebecker%2Fpinyin-split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepebecker%2Fpinyin-split/lists"}