{"id":17033000,"url":"https://github.com/up9cloud/js-zh2py","last_synced_at":"2026-04-13T16:04:52.982Z","repository":{"id":147293217,"uuid":"61942536","full_name":"up9cloud/js-zh2py","owner":"up9cloud","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-27T03:21:10.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T21:20:02.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/up9cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-06-25T12:37:33.000Z","updated_at":"2019-02-27T03:21:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"75d314ab-a8f8-4158-b2b4-569a6680aa49","html_url":"https://github.com/up9cloud/js-zh2py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/up9cloud/js-zh2py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fjs-zh2py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fjs-zh2py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fjs-zh2py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fjs-zh2py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/up9cloud","download_url":"https://codeload.github.com/up9cloud/js-zh2py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fjs-zh2py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31759586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-14T08:31:36.721Z","updated_at":"2026-04-13T16:04:52.953Z","avatar_url":"https://github.com/up9cloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# jquery.Zh2Py.min.js\n\n不知原作者是誰，所以改寫下。希望能找到原作者。\n\n- 原本是遍歷搜尋，為了以後著想還是改成字對音。\n\n## usage\n\n###### browser (jquery)\n\n```js\n(function (jQuery) {\n const zh2py = require('zh2py');\n    // bind toPinyin to jquery.\n    jQuery.fn.toPinyin = function (h) {\n        const source = jQuery(this).text();\n        return zh2py(source);\n    };\n})(jQuery);\n\n$('text-div-id').toPinyin();\n```\n\n###### browser\n\n```js\nconst zh2py = require('zh2py');\nconsole.log(zh2py('芭樂'));\n// Ba 樂\nconsole.log(zh2py('芭樂', '*'));\n// Ba * \n```\n\n## dev\n\n- `npm install -g gulp`\n- `npm install`\n\n### build\n\n```sh\ngulp build\n```\n\n### test\n\n```sh\n./docker.run.sh\n\n# open browser\n# localhost/test/index.html\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup9cloud%2Fjs-zh2py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fup9cloud%2Fjs-zh2py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup9cloud%2Fjs-zh2py/lists"}