plantuml-txt
v1.0.20
Published
NPM Package that can convert the PlantUML code in a .txt file to a .png file
Downloads
8
Maintainers
Readme
PlantUML-txt
PlantUml-txt is an npm package that allows you to convert PlantUML code in **.txt**
format to **.png**
files. It provides a convenient way to generate visual representations of your PlantUML diagrams for use in your projects or documentation.
Features
- Converts PlantUML code in .txt format to .png images.
- Easy to use and integrate into your workflow.
- Supports a wide range of PlantUML diagram types.
- Customizable output file name and destination.
- Works on both Node.js and browser environments.
Installation
You can install the package using npm:
npm install plantuml-txt
Usage
const { convertPlantUmlToPng } = require('plantuml-txt');
// Convert PlantUML code in .txt format to .png
convertPlantUmlToPng('path/to/plantuml.txt', 'output/path/diagram.png')
.then(() => {
console.log('PlantUML diagram converted to .png successfully!');
})
.catch((error) => {
console.error('Error converting PlantUML diagram:', error);
});
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! If you find any issues or would like to add new features or improvements, please feel free to open a pull request. Make sure to follow the contribution guidelies.
Acknowledgments
- This package is inspired by the PlantUML project (https://plantuml.com/).
- Thanks to the contributors to this project.
Support
For any questions or support regarding the PlantUml-txt package, please open an issue on GitHub.