More Premium Hugo Themes Premium Astro Themes

Newmd

A CLI tool that creates markdown files with frontmatter using a Zod schema. Designed to integrate smoothly with Astro Content Collections.

Newmd

A CLI tool that creates markdown files with frontmatter using a Zod schema. Designed to integrate smoothly with Astro Content Collections.

Author Avatar Theme by maxchang3
Github Stars Github Stars: 14
Last Commit Last Commit: Jul 5, 2025 -
First Commit Created: Aug 8, 2025 -
Newmd screenshot

Overview

Newmd is a versatile command-line tool designed for creating markdown files with customizable schemas. It streamlines the process by allowing users to define specific frontmatter for their markdown content, making it particularly useful for developers and writers who need consistency and organization in their documentation. With its easy installation and intuitive configuration options, Newmd caters to various use cases while maintaining a user-friendly approach.

Newmd allows for seamless integration with other frameworks like Astro, providing users with the flexibility to generate markdown files tailored to their specific needs. The tool acknowledges the importance of proper schema definitions and ensures that your content is structured and stored efficiently, enhancing productivity and clarity in content management.

Features

  • Custom Schema Definition: Create your own schema in the config file, providing full control over the fields used in your markdown files.

  • CLI Convenience: Easily run commands in your terminal or use pnpx for quick access to Newmd’s functionalities without unnecessary installations.

  • Flexible Content Options: Set content, output directory, and filename slug with various command-line options to meet your project requirements.

  • Frontmatter Support: Configure how frontmatter is handled, including optional TOML format, for seamless data integration within your markdown documents.

  • Global and Per-Schema Mapping: Customize field mapping for titles at both global and schema levels, ensuring your markdown files align with your organizational structure.

  • Date Management: Automatically populate the pubDate field with the current date for consistent timestamping across your files.

  • Open-Source Contributions: Acknowledges community support with credits to influential contributors, showcasing the collaborative spirit of software development.