{"id":19680751,"url":"https://github.com/codewars/codemirror-unicode-helper","last_synced_at":"2025-04-29T04:31:36.723Z","repository":{"id":57103204,"uuid":"316209768","full_name":"codewars/codemirror-unicode-helper","owner":"codewars","description":"CodeMirror extension for entering Unicode characters with ASCII sequences. Defaults to LaTeX-like abbreviations.","archived":false,"fork":false,"pushed_at":"2021-03-14T02:22:58.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-18T14:14:54.352Z","etag":null,"topics":["codemirror"],"latest_commit_sha":null,"homepage":"https://codewars.github.io/codemirror-unicode-helper/","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/codewars.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-26T11:26:37.000Z","updated_at":"2021-11-16T11:22:12.000Z","dependencies_parsed_at":"2022-08-20T20:40:37.792Z","dependency_job_id":null,"html_url":"https://github.com/codewars/codemirror-unicode-helper","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/codewars%2Fcodemirror-unicode-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewars%2Fcodemirror-unicode-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewars%2Fcodemirror-unicode-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewars%2Fcodemirror-unicode-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewars","download_url":"https://codeload.github.com/codewars/codemirror-unicode-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251432847,"owners_count":21588665,"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":["codemirror"],"created_at":"2024-11-11T18:05:56.113Z","updated_at":"2025-04-29T04:31:36.459Z","avatar_url":"https://github.com/codewars.png","language":"TypeScript","readme":"# codemirror-unicode-helper\n\nCodeMirror extension for entering Unicode characters using LaTeX-like abbreviations.\n\nProvides functions `unicodeHelper` and `unicodeHelperWith`.\n\n- `unicodeHelper`: Hint helper with preconfigured sequences.\n- `unicodeHelperWith(pairs: [seq: string, sym: string][])`: Returns a hint helper with privided pairs.\n\n## Usage\n\nUsing with preconfigured sequences:\n\n```javascript\nimport CodeMirror from \"codemirror\";\nimport \"codemirror/addon/hint/show-hint\";\nimport { unicodeHelper } from \"@codewars/codemirror-unicode-helper\";\n\nCodeMirror.registerGlobalHelper(\n  \"hint\",\n  \"unicode-helper\",\n  predicate,\n  unicodeHelper\n);\n```\n\nUsing with custom sequences:\n\n```javascript\nimport CodeMirror from \"codemirror\";\nimport \"codemirror/addon/hint/show-hint\";\nimport { unicodeHelperWith } from \"@codewars/codemirror-unicode-helper\";\n\nCodeMirror.registerGlobalHelper(\n  \"hint\",\n  \"unicode-helper\",\n  predicate,\n  unicodeHelperWith([\n    [\"div\", \"÷\"],\n    [\"pi\", \"π\"],\n    [\"sqrt\", \"√\"],\n    [\"cbrt\", \"∛\"],\n  ])\n);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewars%2Fcodemirror-unicode-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewars%2Fcodemirror-unicode-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewars%2Fcodemirror-unicode-helper/lists"}