Gathering detailed insights and metrics for @kuss/concat-md
Gathering detailed insights and metrics for @kuss/concat-md
Gathering detailed insights and metrics for @kuss/concat-md
Gathering detailed insights and metrics for @kuss/concat-md
CLI and API to concatenate markdown files and modify as necessary.
npm install @kuss/concat-md
Typescript
Module System
Min. Node Version
Node Version
NPM Version
57.6
Supply Chain
93.7
Quality
70.9
Maintenance
25
Vulnerability
98.2
License
TypeScript (64.18%)
JavaScript (35.82%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
33 Stars
50 Commits
6 Forks
1 Watchers
1 Branches
5 Contributors
Updated on Feb 25, 2025
Latest Version
0.4.0
Package Id
@kuss/concat-md@0.4.0
Unpacked Size
37.85 kB
Size
9.90 kB
File Count
9
NPM Version
8.16.0
Node Version
16.14.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
21
CLI and API to concatenate markdown files and modify as necessary.
# Install
$ npm install -g concat-md
or use it via npx
:
$ npx concat-md docs
If files have titles in markdown already:
$ concat-md --toc --decrease-title-levels --dir-name-as-title typedoc-api-docs > README.md
If files have titles in FrontMatter meta data:
$ concat-md --toc --decrease-title-levels --title-key title --file-name-as-title --dir-name-as-title docs > README.md
If files don't have titles:
$ concat-md --toc --decrease-title-levels --file-name-as-title --dir-name-as-title docs > README.md
FrontMatter
, file names and directory names,<a name=""></a>
) to files, if no optional titles are generated and the --hide-anchor-links
option is not enabled.1Usage 2 $ concat-md [options] <dir> 3 4Options 5 --ignore <globs csv> - Glob patterns to exclude in 'dir'. 6 --toc - Adds table of the contents at the beginning of file. 7 --decrease-title-levels - Whether to decrease levels of all titles in markdown file to set them below file and directory title levels. 8 --start-title-level-at <level no> - Level to start file and directory levels. Default: 1 9 --join-string <string> - String to be used to join concatenated files. Default: new line 10 --title-key <key name> - Key name to get title in 'FrontMatter' meta data in markdown headers. 11 --file-name-as-title - Whether to use file names as titles. 12 --dir-name-as-title - Whether to use directory names as titles. 13 --hide-anchor-links - Do not add anchor links if optional titles are not set. 14 --debug - Print stack trace in errors. 15 16Examples 17 If files have titles in markdown already: 18 $ npx concat-md --toc --decrease-title-levels --dir-name-as-title typedoc-api-docs > README.md 19 20 If files have titles in FrontMatter meta data: 21 $ npx concat-md --toc --decrease-title-levels --title-key title --file-name-as-title --dir-name-as-title docs > README.md 22 23 If files don't have titles: 24 $ npx concat-md --toc --decrease-title-levels --file-name-as-title --dir-name-as-title docs > README.md
└─ Development
└─ Projects
└─ project-a
├─ docs
├─ classes
│ ├─ widget.md
│ ├─ utility.md
└─ interfaces
└─ screen.md
classes/widget.md
1# Description 2 3Widget details lorem ipsum...
classes/utility.md
1# Description 2 3Utility details lorem ipsum...
interfaces/screen.md
1# Description 2 3Screen details lorem ipsum...
1$ md-merge --decrease-title-levels --file-name-as-title --dir-name-as-title docs > README.md
Above command;
Description
titles,README.md
as below:README.md
1# Classes 2 3## Widget 4 5### Description 6 7Widget details lorem ipsum... 8 9## Utility 10 11### Description 12 13Utility details lorem ipsum... 14 15# Interfaces 16 17## Screen 18 19### Description 20 21Screen details lorem ipsum...
▸ concatMd(dir
: string, options?
: ConcatOptions): Promise<string>
Defined in index.ts:295
Scans and concatenates all markdown files in given directory.
1import concatMd, { concatMdSync } from "concat-md";
Parameters:
Name | Type | Description |
---|---|---|
dir | string | is the directory to scan markdown files in. |
options? | ConcatOptions | are several parameters to modify concatenation behaviour. |
Returns: Promise<string>
concatenated contents of markdown files.
▸ concatMdSync(dir
: string, options?
: ConcatOptions): string
Defined in index.ts:281
Scans and concatenates all markdown files in given directory.
1import concatMd, { concatMdSync } from "concat-md";
Parameters:
Name | Type | Description |
---|---|---|
dir | string | is the directory to scan markdown files in. |
options? | ConcatOptions | are several parameters to modify concatenation behaviour. |
Returns: string
concatenated contents of markdown files.
Concat function options.
Optional
decreaseTitleLevels• decreaseTitleLevels? : undefined | false | true
Defined in index.ts:52
Whether to decrease levels of all titles in markdown file to set them below file and directory title levels.
Optional
dirNameAsTitle• dirNameAsTitle? : undefined | false | true
Defined in index.ts:72
Whether to use directory names as titles.
Optional
fileNameAsTitle• fileNameAsTitle? : undefined | false | true
Defined in index.ts:68
Whether to use file names as titles.
Optional
hideAnchorLinks• hideAnchorLinks? : undefined | false | true
Defined in index.ts:70
Do not add anchor links.
Optional
ignore• ignore? : string | string[]
Defined in index.ts:48
Glob patterns to exclude in dir
.
Optional
joinString• joinString? : undefined | string
Defined in index.ts:60
String to be used to join concatenated files.
Optional
startTitleLevelAt• startTitleLevelAt? : undefined | number
Defined in index.ts:56
Level to start file and directory levels.
Optional
titleKey• titleKey? : undefined | string
Defined in index.ts:64
Key name to get title in FrontMatter
meta data in markdown headers.
Optional
toc• toc? : undefined | false | true
Defined in index.ts:40
Whether to add a table of contents.
Optional
tocLevel• tocLevel? : undefined | number
Defined in index.ts:44
Limit TOC entries to headings only up to the specified level.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/24 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More