A tool to convert Mermaid diagrams to PNG images.
- Node.js 18.x or higher
- npm or yarn
- Clone the repository:
git clone https://github.com/DavidNgugi/mermaid-to-png.git
cd mermaid-to-png- Install dependencies:
npm install
# or
yarn installAdd your mermaid file or paste it in a .mmd file
node index.js <your_file_name>.mmd <name_of_output>.pngExample:
node index.js diagram.mmd output.pngThe application will be available by default as output.png in current directory
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.