Replace file content within commented tag holes
README.md
:
## Options
We support following options:
<!-- <options> -->
<!-- </options> -->
// scripts/update-readme.js
import { replaceTag } from "comment-hole";
replaceTag("README.md", {
options: "<<Put anything generated here!>>",
});
node scripts/update-readme.js
## Options
We support following options:
<!-- <options> -->
+<<Put anything generated here!>>
+
<!-- </options> -->
[!NOTE] Whenever you run
replaceTag
ANY content between the hole tags will be replaced.
For now we only support .md
and .html
.
PRs are welcome!