Merge multiple .md files from a folder into one output file, ordered by modification time. Designed to work with output from Whispering — the open-source transcription app. Each source file is reduced to only completedAt (written as timeStamp) and output (written as text).
- Node.js (no extra packages)
Create a .dev.vars file in the project directory (if it doesn’t exist) and set the folder path that contains your Whispering transformation .md files:
# .dev.vars
target_folder = /absolute/path/to/your/md-folder- Use
~for your home directory, e.g.target_folder = ~/Documents/notes - For paths with spaces, escape them:
target_folder = ~/Library/Application\ Support/com.bradenwong.whispering/transformation-runs
From the project directory:
node main.jsOn success you’ll see something like:
已合併 3 個 .md 檔 -> output-20260131-064353.md
- Output filename format:
output-YYYYMMDD-HHmmss.md - The file is written in the project directory (same level as
main.js) - Each source file appears with only:
timeStamp(from sourcecompletedAt)text(from sourceoutput)
The script expects Whispering-style .md files (e.g. from transformation-runs) and keeps only:
- The line starting with
completedAt→ written astimeStamp - The line(s) starting with
output(including multiline values) → written astext
All other frontmatter or content is dropped.
.dev.varsis not committed (see.gitignore); create and fill it locally- If the target folder doesn’t exist or has no
.mdfiles, the script prints an error or message and exits
- Whispering — Open source transcription app (local or cloud, transparent, no black box)