h9-cli-md-maker
v1.1.0
Published
CLI tool for creating markdown files from YAML templates
Readme
md-maker
A CLI tool designed to streamline web development by using markdown files as a content management system. md-maker eliminates the need for complex database setups by:
- Using markdown files as a lightweight alternative to traditional CMS
- Converting markdown content to JSON for fast and efficient data access
- Enabling rapid development without database overhead
- Providing a simple yet powerful content management solution
- Supporting structured content with frontmatter metadata
Why md-maker?
Traditional web development often requires complex database setups and CMS solutions. md-maker offers a simpler alternative:
- No database setup required
- Version control friendly (markdown files are text-based)
- Fast content updates without database migrations
- Easy to deploy and maintain
- Perfect for static site generators and headless CMS implementations
Installation
npm install -g @h9/md-makeror
pnpm add -g @h9/md-makerUsage
Create a markdown file
md-maker createConvert a markdown file to JSON
md-maker parseAfter running, you'll be prompted to enter:
- Markdown file path (e.g.,
README.md) - JSON file save path (e.g.,
json-data/README.json)
Convert all markdown files in a directory to JSON
md-maker parse-dirAfter running, you'll be prompted to enter:
- Directory path containing markdown files (e.g.,
docs) - JSON file save path (e.g.,
json-data/docs-all.json)
Features
- Create and manage markdown-based content
- Convert markdown to JSON for efficient data access
- Handle multiple content files in a directory
- Frontmatter (YAML) support for metadata
- Automatic directory and file organization
Use Cases
- Content-heavy websites
- Documentation sites
- Blog platforms
- Product catalogs
- Any application where content needs to be managed without a database
License
ISC
