From d15d00a402b6931d1f15ca21141540f44a4f8351 Mon Sep 17 00:00:00 2001 From: mohamedsalem401 Date: Mon, 25 Mar 2024 20:22:31 +0200 Subject: [PATCH] [README][s]: Add instructions for watching the indexed folder --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index fda14ca..edbe783 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,14 @@ Use the npm `mddb` package to index Markdown files into an SQLite database. This npx mddb ./blog ``` +### Watching for Changes + +To monitor files for changes and update the database accordingly, simply add the `--watch` flag to the command: +```bash +npx mddb ./blog --watch +``` +This command will continuously watch for any modifications in the specified folder (`./blog`), automatically rebuilding the database whenever a change is detected. + ### Query your files with SQL... E.g. get all the files with with tag `a`.