{"id":20014770,"url":"https://github.com/pepebecker/pinyin-utils","last_synced_at":"2025-05-04T22:31:20.419Z","repository":{"id":57324539,"uuid":"88676678","full_name":"pepebecker/pinyin-utils","owner":"pepebecker","description":"Some useful utilities to transform Pinyin syllables.","archived":false,"fork":false,"pushed_at":"2020-11-25T13:08:40.000Z","size":67,"stargazers_count":27,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T09:21:40.590Z","etag":null,"topics":["chinese","hacktoberfest","mandarin","pinyin","tone","utils"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pinyin-utils","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:41:05.000Z","updated_at":"2025-04-14T02:44:26.000Z","dependencies_parsed_at":"2022-09-04T11:50:49.107Z","dependency_job_id":null,"html_url":"https://github.com/pepebecker/pinyin-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepebecker","download_url":"https://codeload.github.com/pepebecker/pinyin-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252408171,"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","tone","utils"],"created_at":"2024-11-13T07:43:53.154Z","updated_at":"2025-05-04T22:31:20.116Z","avatar_url":"https://github.com/pepebecker.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pinyin Utils\n\n[![npm version](https://img.shields.io/npm/v/pinyin-utils.svg)](https://www.npmjs.com/package/pinyin-utils)\n[![Travis Build Status](https://travis-ci.org/pepebecker/pinyin-utils.svg)](https://travis-ci.org/pepebecker/pinyin-utils)\n[![dependency status](https://img.shields.io/david/pepebecker/pinyin-utils.svg)](https://david-dm.org/pepebecker/pinyin-utils)\n[![dev dependency status](https://img.shields.io/david/dev/pepebecker/pinyin-utils.svg)](https://david-dm.org/pepebecker/pinyin-utils#info=devDependencies)\n[![ISC-licensed](https://img.shields.io/github/license/pepebecker/pinyin-utils.svg)](https://choosealicense.com/licenses/isc/)\n\n## Install\n\n```shell\nnpm install pinyin-utils\n```\n\n## Usage\n\n```js\nimport * as utils from 'pinyin-utils'\nconsole.log(utils.getToneNumber('shì'))   // 4\nconsole.log(utils.getToneNumber('shi4'))  // 4\nconsole.log(utils.removeTone('wǒ'))       // wo\nconsole.log(utils.removeTone('wo3'))      // wo\nconsole.log(utils.markToNumber('lǜ'))     // lü4\nconsole.log(utils.numberToMark('lü4'))    // lǜ\n```\n\n## Related\n\n- [`pinyin-split`](https://github.com/pepebecker/pinyin-split)\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-utils/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepebecker%2Fpinyin-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepebecker%2Fpinyin-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepebecker%2Fpinyin-utils/lists"}