Skip to main content

Extract the file name and comment content from “// comment: {comment}” in js, jsx, ts, tsx, md in the directory where the command is currently executed

This package works with Node.js, Deno
This package works with Node.js
This package works with Deno
JSR Score
100%
Published
3 hours ago (0.0.14)

commentCollect

Extract the file name and comment content from “// comment: {comment}” in js, jsx, ts, tsx, md in the directory where the command is currently executed

how to use

yarn dlx @chengde/comment_collect

or

deno run -A jsr:@chengde/comment-collect

Add Package

deno add jsr:@chengde/comment-collect

Import symbol

import * as comment_collect from "@chengde/comment-collect";

---- OR ----

Import directly with a jsr specifier

import * as comment_collect from "jsr:@chengde/comment-collect";

Add Package

npx jsr add @chengde/comment-collect

Import symbol

import * as comment_collect from "@chengde/comment-collect";

Add Package

yarn dlx jsr add @chengde/comment-collect

Import symbol

import * as comment_collect from "@chengde/comment-collect";

Add Package

pnpm dlx jsr add @chengde/comment-collect

Import symbol

import * as comment_collect from "@chengde/comment-collect";