New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

comment-hole

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comment-hole

Replace file content within commented tag holes

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Comment Hole

npm package

Replace file content within commented tag holes



Getting started

1 Create a hole in your file with comment tags

README.md:

## Options

We support following options:

<!-- <options> -->

<!-- </options> -->

2 Run replaceTag

// scripts/update-readme.js
import { replaceTag } from "comment-hole";

replaceTag("README.md", {
  options: "<<Put anything generated here!>>",
});
node scripts/update-readme.js

3 Done! File will be overwritten

## 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.

Supported Extensions

For now we only support .md and .html.
PRs are welcome!

Keywords

FAQs

Package last updated on 09 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc