JSPM

astro-md-generator

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 117
  • Score
    100M100P100Q77906F
  • License MIT

Command-line interface (CLI) for adding new posts to your Astro project

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (astro-md-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    astro-md-generator

    This command-line interface (CLI) is designed for adding new posts to your Astro project. It analyzes the content in your src/content/ folder to detect the structure of your Markdown/MDX files and enables you to generate new files that match your project's structure."

    astro-md-generator

    Install

    npm install -g astro-md-generator

    📝 Adding New Posts (Usage)

    To add a new post, run the following command in your project folder:

    astro-md-generator

    Follow the instructions and this will generate a new markdown file in the src/content/<FOLDER>. Edit the file to add your post content.

    🛠️ Add a command to your project

    In your project built with Astro, add a new script in package.json

    "scripts": {
      ...
        "newpost": "astro-md-generator",
      },

    💻 Contributing

    Contributions to this project are welcome. If you find a bug or have a suggestion for improvement, please open an issue or submit a pull request.

    📃 License

    This project is licensed under the MIT License. See the LICENSE file for details.

    ☕ Support

    If this project helped you learn something new, or if you're feeling particularly generous, you can buy me a coffee. It's greatly appreciated! 😊 GitHub Sponsors