create-node-blog
v1.0.0
Published
> π Minimalist Markdown to HTML site generator β like a tiny Jekyll, but in one command.
Downloads
4
Readme
create-node-blog
π Minimalist Markdown to HTML site generator β like a tiny Jekyll, but in one command.
Convert all .md files in a directory into styled .html pages using KartonCSS. Preserves folder structure, skips node_modules, and creates an automatic index.html.
β¨ Features
π Recursively scans for
.mdfilesπ§Ό Skips
node_modules/,.git/,.cache/π¨ Outputs clean HTML using KartonCSS
π Optional custom site title and description
π¦ Perfect for publishing docs, notes, or static blogs
π Usage
npx create-node-blog <inputDir> <outputDir> [siteTitle] ["site description"] π Example
npx create-node-blog ./ ./dist "My Notes" "All my markdown files turned into HTML." This will:
Convert every
.mdin./into.htmlin./dist/Generate
./dist/index.htmllinking to all filesUse the provided title and description in the HTML output
π§ͺ Output Structure Example
If your project looks like:
my-project/
βββ README.md
βββ docs/
β βββ intro.md
βββ notes/
βββ today.md Youβll get:
dist/
βββ README.html
βββ docs/
β βββ intro.html
βββ notes/
β βββ today.html
βββ index.html π Install as a Dev Tool
For repeated local usage:
npm install -D create-node-blog
npx create-node-blog ./ ./dist "My Site" "Generated with Markdown" π¦ Local Development
git clone https://gitlab.com/rodezee/create-node-blog.git
cd create-node-blog
npm install
chmod +x index.js
npm link Then test:
create-node-blog ./ ./dist "Test" "Test description" π License
MIT β by Biensure
