{"id":17298307,"url":"https://github.com/chanind/pinyin-tone-converter","last_synced_at":"2025-06-25T23:32:03.856Z","repository":{"id":44111712,"uuid":"195634961","full_name":"chanind/pinyin-tone-converter","owner":"chanind","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-09T17:19:05.000Z","size":2529,"stargazers_count":3,"open_issues_count":22,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T12:52:30.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/chanind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-07T09:50:59.000Z","updated_at":"2024-03-28T13:47:24.000Z","dependencies_parsed_at":"2023-01-25T15:00:17.957Z","dependency_job_id":null,"html_url":"https://github.com/chanind/pinyin-tone-converter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/chanind/pinyin-tone-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fpinyin-tone-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fpinyin-tone-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fpinyin-tone-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fpinyin-tone-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanind","download_url":"https://codeload.github.com/chanind/pinyin-tone-converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fpinyin-tone-converter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261972891,"owners_count":23238539,"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":[],"created_at":"2024-10-15T11:18:44.012Z","updated_at":"2025-06-25T23:32:03.827Z","avatar_url":"https://github.com/chanind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pinyin Tone Converter\n\n[![CircleCI](https://circleci.com/gh/chanind/pinyin-tone-converter/tree/master.svg?style=shield)](https://circleci.com/gh/chanind/pinyin-tone-converter/tree/master)\n[![Coverage Status](https://coveralls.io/repos/github/chanind/pinyin-tone-converter/badge.svg?branch=master)](https://coveralls.io/github/chanind/pinyin-tone-converter?branch=master)\n[![npm](https://badgen.net/npm/v/pinyin-tone-converter)](https://www.npmjs.com/package/pinyin-tone-converter)\n[![license](https://badgen.net/npm/license/pinyin-tone-converter)](https://opensource.org/licenses/MIT)\n\nA simple Javascript plugin to convert pinyin with numbers to tone marks.\nThis plugin is based on the [Quizlet Pinyin Converter](https://github.com/quizlet/pinyin-converter)\n\nWorks in node and in the browser. No external dependencies.\n\n## Installation\n\n`npm install pinyin-tone-converter`\n\n## Usage\n\n```js\nimport convertPinyinTones from 'pinyin-tone-converter';\n\nconvertPinyinTones('ni3hao3');\n// returns 'nǐhǎo'\n\nconvertPinyinTones('san1ren2xing2bi4you3wo3shi1');\n// returns \"sānrénxíngbìyǒuwǒshī\"\n\n// ü can be typed by using v\nconvertPinyinTones('lv4');\n// returns \"lǜ\"\n\n// works with uppercase chars too\nconvertPinyinTones('WO3 HEN3 XI3HUAN QUIZLET!');\n// returns \"WǑ HĚN XǏHUAN QUIZLET!\"\n```\n\n## License\n\npinyin-tone-converter is released under a [MIT License](https://opensource.org/licenses/MIT)\n\n## Contributing\n\nContributions are welcome! These steps will guide you through contributing to this project:\n\n- Fork the repo\n- Clone it and install dependencies\n\n  `git clone https://github.com/chanind/pinyin-tone-converter`\n\n  `yarn install`\n\nMake and commit your changes. Make sure the commands yarn run build and yarn run test:prod are working.\n\nFinally send a [GitHub Pull Request](https://github.com/chanind/pinyin-tone-converter/compare?expand=1) with a clear list of what you've done. Make sure all of your commits are atomic (one feature per commit). Please add tests for any features that you add or change.\n\n## Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanind%2Fpinyin-tone-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanind%2Fpinyin-tone-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanind%2Fpinyin-tone-converter/lists"}