{"id":16528798,"url":"https://github.com/akinoccc/markdown-matcher","last_synced_at":"2025-03-03T07:44:05.119Z","repository":{"id":57714203,"uuid":"499589432","full_name":"akinoccc/markdown-matcher","owner":"akinoccc","description":"the matcher which has reg expression and some methods about markdown.","archived":false,"fork":false,"pushed_at":"2022-07-18T17:03:38.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T13:43:15.230Z","etag":null,"topics":["markdown","regexp","regexp-match"],"latest_commit_sha":null,"homepage":"","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/akinoccc.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}},"created_at":"2022-06-03T17:06:03.000Z","updated_at":"2022-07-30T15:52:02.000Z","dependencies_parsed_at":"2022-09-26T21:31:15.600Z","dependency_job_id":null,"html_url":"https://github.com/akinoccc/markdown-matcher","commit_stats":null,"previous_names":["vkm0303/markdown-matcher","akinoccc/markdown-matcher"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akinoccc%2Fmarkdown-matcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akinoccc%2Fmarkdown-matcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akinoccc%2Fmarkdown-matcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akinoccc%2Fmarkdown-matcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akinoccc","download_url":"https://codeload.github.com/akinoccc/markdown-matcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629739,"owners_count":19993707,"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":["markdown","regexp","regexp-match"],"created_at":"2024-10-11T17:41:45.265Z","updated_at":"2025-03-03T07:44:05.089Z","avatar_url":"https://github.com/akinoccc.png","language":"JavaScript","readme":"# Markdown-Matcher\n\n\u003cdiv style=\"display: flex;\"\u003e\n  \u003cimg style=\"margin-right: 10px\" src=\"https://img.shields.io/npm/v/markdown-matcher\" /\u003e\n  \u003cimg style=\"margin-right: 10px\" src=\"https://img.shields.io/npm/dw/markdown-matcher\"/\u003e\n  \u003cimg style=\"margin-right: 10px\" src=\"https://img.shields.io/bundlephobia/min/markdown-matcher\"/\u003e\n  \u003cimg style=\"margin-right: 10px\" src=\"https://img.shields.io/github/license/vkm0303/markdown-matcher\"/\u003e\n\u003c/div\u003e\n## Install\n\n```shell\nnpm i markdown-matcher --save\n```\n\n## Usage\n\n### regexp constant\n\nyou can import the regular expression from `markdown-matcher` for other purposes.\n\n```js\nimport { HEADER, H1, H2, LINK } from 'markdown-matcher';\n```\n\n### match\n\n```js\nimport { H1, match } from 'markdown-matcher';\nconst str = '# header1 \\n 1234';\nmatch(str, 'h1'); // =\u003e # header1\n```\n\n### hasHeader\n\nDetermine if header exists.\n\n```js\nimport { hasHeader } from 'markdown-matcher';\nconst str = '# header1 \\n 1234';\nhasHeader(str, 'header'); // =\u003e true\nhasHeader(str, 'h1'); // =\u003e true\nhasHeader(str, 'h2'); // =\u003e false\n```\n\n### hasLink\n\nDetermine if link exists.\n\n```js\nimport { hasLink } from 'markdown-matcher';\nconst str = '[](http://abc.com) \\n 1234';\nhasLink(str); // =\u003e true\n```\n\n### hasCodeBlock\n\nDetermine if code block exists.\n\n````js\nimport { hasCodeBlock } from 'markdown-matcher';\nconst str = '```js var a = 1``` \\n 1234';\nhasCodeBlock(str); // =\u003e true\n````\n\n### more\n\n`hasImage`, `hasItalic`, `hasBold`, `hasHeightLight`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakinoccc%2Fmarkdown-matcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakinoccc%2Fmarkdown-matcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakinoccc%2Fmarkdown-matcher/lists"}