{"id":17139304,"url":"https://github.com/renatorib/comment-hole","last_synced_at":"2026-01-08T13:10:52.799Z","repository":{"id":252310405,"uuid":"840073157","full_name":"renatorib/comment-hole","owner":"renatorib","description":"Replace file content within commented tags","archived":false,"fork":false,"pushed_at":"2024-08-09T00:18:17.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T05:34:44.492Z","etag":null,"topics":["generator","readme","replacer"],"latest_commit_sha":null,"homepage":"","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/renatorib.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":"2024-08-08T23:19:21.000Z","updated_at":"2024-08-09T19:29:36.000Z","dependencies_parsed_at":"2024-08-09T01:28:54.124Z","dependency_job_id":null,"html_url":"https://github.com/renatorib/comment-hole","commit_stats":null,"previous_names":["renatorib/comment-hole","renatorib/replace-tag"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatorib%2Fcomment-hole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatorib%2Fcomment-hole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatorib%2Fcomment-hole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatorib%2Fcomment-hole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renatorib","download_url":"https://codeload.github.com/renatorib/comment-hole/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246326783,"owners_count":20759439,"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":["generator","readme","replacer"],"created_at":"2024-10-14T20:11:56.383Z","updated_at":"2026-01-08T13:10:52.759Z","avatar_url":"https://github.com/renatorib.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eComment Hole\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.com/package/comment-hole\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/comment-hole.svg\" alt=\"npm package\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eReplace file content within commented tag holes\u003c/p\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Getting started\n\n### `1` Create a hole in your file with comment tags\n\n`README.md`:\n\n```md\n## Options\n\nWe support following options:\n\n\u003c!-- \u003coptions\u003e --\u003e\n\n\u003c!-- \u003c/options\u003e --\u003e\n```\n\n### `2` Run `replaceTag`\n\n```js\n// scripts/update-readme.js\nimport { replaceTag } from \"comment-hole\";\n\nreplaceTag(\"README.md\", {\n  options: \"\u003c\u003cPut anything generated here!\u003e\u003e\",\n});\n```\n\n```sh\nnode scripts/update-readme.js\n```\n\n### `3` Done! File will be overwritten\n\n```diff\n## Options\n\nWe support following options:\n\n\u003c!-- \u003coptions\u003e --\u003e\n\n+\u003c\u003cPut anything generated here!\u003e\u003e\n+\n\u003c!-- \u003c/options\u003e --\u003e\n```\n\n\u003e [!NOTE]\n\u003e Whenever you run `replaceTag` **ANY** content between the hole tags will be replaced.\n\n## Supported Extensions\n\nFor now we only support `.md` and `.html`.  \nPRs are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatorib%2Fcomment-hole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenatorib%2Fcomment-hole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatorib%2Fcomment-hole/lists"}