Newmd

screenshot of Newmd
astro

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

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.

astro
Astro

Astro is the all-in-one web framework designed for speed. Pull your content from anywhere and deploy everywhere, all powered by your favorite UI components and libraries.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.