{"id":16679989,"url":"https://github.com/zhangsoledad/alchemic_pinyin","last_synced_at":"2025-04-09T22:33:46.365Z","repository":{"id":57478779,"uuid":"54948874","full_name":"zhangsoledad/alchemic_pinyin","owner":"zhangsoledad","description":"Elixir汉字转化拼音","archived":false,"fork":false,"pushed_at":"2021-10-07T02:08:03.000Z","size":199,"stargazers_count":18,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T00:37:17.099Z","etag":null,"topics":["elixir","pinyin"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/alchemic_pinyin","language":"Elixir","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/zhangsoledad.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":"2016-03-29T05:39:09.000Z","updated_at":"2023-09-01T08:53:24.000Z","dependencies_parsed_at":"2022-09-17T04:20:43.848Z","dependency_job_id":null,"html_url":"https://github.com/zhangsoledad/alchemic_pinyin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangsoledad%2Falchemic_pinyin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangsoledad%2Falchemic_pinyin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangsoledad%2Falchemic_pinyin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangsoledad%2Falchemic_pinyin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhangsoledad","download_url":"https://codeload.github.com/zhangsoledad/alchemic_pinyin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247895797,"owners_count":21014389,"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":["elixir","pinyin"],"created_at":"2024-10-12T13:38:37.726Z","updated_at":"2025-04-09T22:33:46.332Z","avatar_url":"https://github.com/zhangsoledad.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alchemic_pinyin\n\n[![Build Status](https://travis-ci.org/zhangsoledad/alchemic_pinyin.svg?branch=master)](https://travis-ci.org/zhangsoledad/alchemic_pinyin.svg?branch=master)\n[![Inline docs](http://inch-ci.org/github/zhangsoledad/alchemic_pinyin.svg?branch=master)](http://inch-ci.org/github/zhangsoledad/alchemic_pinyin)\n\n中文汉字转拼音\n\u003eInspired by [chinese_pinyin](https://github.com/flyerhzm/chinese_pinyin).\n\n## Installation\n\n1. Add pinyin to your list of dependencies in `mix.exs`:\n```elixir\ndef deps do\n  [{:alchemic_pinyin, \"~\u003e 0.1.0\"}]\nend\n```\n\n2. Ensure pinyin is started before your application:\n```elixir\ndef application do\n  [applications: [:alchemic_pinyin]]\nend\n```\n\n## Usage\n```bash\niex\u003e Pinyin.from_string(\"龡龢龣龤龥癩\")\n\"chui he jue xie yu la\"\niex\u003e Pinyin.from_string(\"龡龢龣龤龥癩\", tone: true)\n\"chùi hé júe xíe yù là\"\niex\u003e Pinyin.from_string(\"龡龢龣龤龥癩\", splitter: \"-\")\n\"chui-he-jue-xie-yu-la\"\niex\u003e Pinyin.from_string(\"龡龢龣龤龥癩\", [], \u0026String.first/1)\n\"c\"\n```\n\n## benchmark\n```\nmix bench\n```\nOS X\n\n2.7 GHz Intel Core i5\n8 GB 1867 MHz DDR3\n```bash\nSettings:\n  duration:      1.0 s\n\nBasicBench\n  [14:01:23] 1/1: hello pinyin\n\nFinished in 4.11 seconds\n\nBasicBench\n  hello pinyin      500000   6.73 µs/op\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangsoledad%2Falchemic_pinyin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhangsoledad%2Falchemic_pinyin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangsoledad%2Falchemic_pinyin/lists"}