{"id":16746890,"url":"https://github.com/ohbarye/react-use-kana","last_synced_at":"2025-10-13T20:39:20.222Z","repository":{"id":35127463,"uuid":"209814081","full_name":"ohbarye/react-use-kana","owner":"ohbarye","description":"Tiny React hooks to build better Japanese form","archived":false,"fork":false,"pushed_at":"2025-03-10T20:42:27.000Z","size":1477,"stargazers_count":28,"open_issues_count":12,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-02T13:11:04.315Z","etag":null,"topics":["forms","hooks","japanese","javascript","react","typescript","ui"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-use-kana","language":"TypeScript","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/ohbarye.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":"2019-09-20T14:46:18.000Z","updated_at":"2025-09-02T08:06:47.000Z","dependencies_parsed_at":"2023-11-17T08:52:59.873Z","dependency_job_id":"b8dbb906-c8bf-40fe-ba1b-45d983609c13","html_url":"https://github.com/ohbarye/react-use-kana","commit_stats":{"total_commits":266,"total_committers":5,"mean_commits":53.2,"dds":0.612781954887218,"last_synced_commit":"37b9a89259fc0e509d45934a6517b8f5627c2154"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/ohbarye/react-use-kana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbarye%2Freact-use-kana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbarye%2Freact-use-kana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbarye%2Freact-use-kana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbarye%2Freact-use-kana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohbarye","download_url":"https://codeload.github.com/ohbarye/react-use-kana/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohbarye%2Freact-use-kana/sbom","scorecard":{"id":703431,"data":{"date":"2025-08-11","repo":{"name":"github.com/ohbarye/react-use-kana","commit":"2844d634d0f23f8ac145050a55208a47c0b582a2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 16 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T05:47:25.547Z","repository_id":35127463,"created_at":"2025-08-22T05:47:25.547Z","updated_at":"2025-08-22T05:47:25.547Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016929,"owners_count":26085910,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["forms","hooks","japanese","javascript","react","typescript","ui"],"created_at":"2024-10-13T02:08:35.706Z","updated_at":"2025-10-13T20:39:20.187Z","avatar_url":"https://github.com/ohbarye.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Use Kana [![npm version](https://badge.fury.io/js/react-use-kana.svg)](https://badge.fury.io/js/react-use-kana) [![CircleCI](https://circleci.com/gh/ohbarye/react-use-kana/tree/main.svg?style=svg)](https://circleci.com/gh/ohbarye/react-use-kana/tree/main)\n\nA tiny React hook to build a better Japanese form. With this library, you can implement a feature to automatically fill in kana in your form.\n\n![basic](https://user-images.githubusercontent.com/1811616/52522034-6d916200-2cc3-11e9-873f-99ac38a58de6.gif)\n\n## Usage\n\n### Installation\n\n```shell\nnpm install react-use-kana\n# or\nyarn add react-use-kana\n```\n\n### API\n\n#### `useKana`\n\nThis is the only one hook that `react-use-kana` provides.\n\n- `kana: string`\n  - A hiragana string that derived from inputs. You set this value to a text input for a kana field.\n- `setKanaSource: (value: string) =\u003e void`\n  - A function to let `useKana` hook know a new input value so that it can derive `kana`. In general, you call this function as `onClick` callback of a text input for a name field which probably has kanjis or non-hiragana characters.\n\nThis hook accepts an option to define its conversion rule.\n\n- `kataType: 'hiragana' | 'katakana'` (Optional)\n  - `'hiragana'` is default. If you'd like to convert to katakana, declare like `useKana({ kanaType: 'katakana' })`.\n\n### Example\n\nLet's see the following simple example.\n\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { useKana } from 'react-use-kana';\n\nconst App = () =\u003e {\n  const { kana, setKanaSource } = useKana();\n\n  return (\n    \u003cform\u003e\n      \u003cdiv\u003e\n        \u003cspan\u003eJapanese Traditional Form\u003c/span\u003e\n      \u003c/div\u003e\n      \u003cdiv\u003e\n        \u003cdiv\u003e\n          \u003cspan\u003eName\u003c/span\u003e\n        \u003c/div\u003e\n        \u003cinput type=\"text\" onChange={(e) =\u003e setKanaSource(e.target.value)} /\u003e\n      \u003c/div\u003e\n      \u003cdiv\u003e\n        \u003cdiv\u003e\n          \u003cspan\u003eName Kana\u003c/span\u003e\n        \u003c/div\u003e\n        \u003cinput type=\"text\" value={kana} /\u003e\n      \u003c/div\u003e\n    \u003c/form\u003e\n  );\n};\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById('root'));\n```\n\n`react-use-kana` doesn't provide features to handle your form's behavior (e.g. to set value to a component's state, to check if a field has been touched or not) because it's supposed to be agnostic about form library.\n\n📝 You can check more authentic example code on https://codesandbox.io/s/react-use-kana-example-1kxuh.\n\n## Feature\n\nThis library uses:\n\n- [React Hooks](https://reactjs.org/docs/hooks-intro.html)\n\n## Requirement\n\n- `react \u003e= 16.8`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohbarye%2Freact-use-kana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohbarye%2Freact-use-kana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohbarye%2Freact-use-kana/lists"}