{"id":17292981,"url":"https://github.com/monyone/aho-corasick","last_synced_at":"2025-07-04T09:03:08.961Z","repository":{"id":241983168,"uuid":"808374182","full_name":"monyone/aho-corasick","owner":"monyone","description":"aho-corasick implementation for TypeScript","archived":false,"fork":false,"pushed_at":"2024-06-02T06:55:01.000Z","size":60,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T23:08:01.652Z","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/monyone.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-31T00:07:33.000Z","updated_at":"2025-04-09T07:14:00.000Z","dependencies_parsed_at":"2024-05-31T01:57:20.981Z","dependency_job_id":"91da4b1c-b4af-420a-a428-16fed4ddcdb0","html_url":"https://github.com/monyone/aho-corasick","commit_stats":null,"previous_names":["monyone/aho-corasick"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monyone%2Faho-corasick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monyone%2Faho-corasick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monyone%2Faho-corasick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monyone%2Faho-corasick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monyone","download_url":"https://codeload.github.com/monyone/aho-corasick/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643004,"owners_count":21138355,"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-15T10:44:57.307Z","updated_at":"2025-04-12T23:08:17.650Z","avatar_url":"https://github.com/monyone.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aho-corasick\n\nSimple Aho-Corasick algorhythm implementaiton for TypeScript.\n\n## Getting Started\n\n```sh\nnpm i @monyone/aho-corasick\n```\n\n### Keyword Detection\n\n```ts\nimport { AhoCorasick } from '@monyone/aho-corasick';\n\nconst ahocorasick = new AhoCorasick(keywords);\nconst hasAnyKeyword: boolean = ahocorasick.hasKeywordInText(text);\n```\n\n### Keyword Matching\n\n```ts\nimport { AhoCorasick } from '@monyone/aho-corasick';\n\nconst ahocorasick = new AhoCorasick(keywords);\nconst match: { begin: number, end: number, keyword: string}[] = ahocorasick.matchInText(text);\n```\n\n### Dynamic Addition/Deletion\n\n```ts\nimport { DynamicAhoCorasick } from '@monyone/aho-corasick';\n\nconst ahocorasick = new DynamicAhoCorasick(keywords);\nahocorasick.add('test')\nahocorasick.delete('test')\nconst match: { begin: number, end: number, keyword: string}[] = ahocorasick.matchInText(text);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonyone%2Faho-corasick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonyone%2Faho-corasick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonyone%2Faho-corasick/lists"}