UnifieReadme: A README generator that standardizes project documentation, ensuring clarity and consistency across your codebase.
Creating and maintaining consistent README files is essential for collaborative projects. UnifieReadme simplifies this process by offering a standardized README template and automated text-to-markdown conversion, ensuring all your project documentation stays uniform and easy to read.
- Standardized Templates: Provides a consistent structure for README files across projects.
- Markdown Conversion: Converts plain text to markdown format.
- Customizable: Easily modify templates to suit project-specific requirements.
This project requires Node.js and npm. Ensure these are installed before proceeding.
$ npm install --global unifie-readme
UnifieReadme offers tools to convert plain text to markdown format and generate standardized README templates. Be sure your text files follow markdown syntax to avoid conversion errors.
const fs = require('fs');
const unifieReadme = require('unifie-readme');
const txtFile = fs.readFileSync('file.txt', 'utf-8');
const markdown = unifieReadme.convertToMarkdown(txtFile);
fs.writeFileSync('file.md', markdown);
Generate a README.md
file directly using the command line:
$ unifie-readme --help
Usage:
$ unifie-readme <input> <output>
Options:
--help, -h Show help options
--version, -v Show version number
Examples:
$ unifie-readme input.txt output.md
Replace input.txt
and output.md
with the actual paths for your source and output files. The markdown file will be saved to output.md
.
Function | Description | Status |
---|---|---|
convertToMarkdown |
📄 Converts text files into markdown format, ensuring consistency. | ✅ |
loadTemplate |
📥 Loads a predefined README template for customization. | ✅ |
exportMarkdown |
💾 Saves the generated markdown file to the specified location. | ✅ |
Function | Description | Status |
---|---|---|
validateMarkdown |
✔️ Validates markdown syntax and structure for standard formatting. | ✅ |
addSection |
➕ Adds a new section to the markdown template. | ✅ |
removeSection |
➖ Removes a specified section from the template. | ✅ |
Maintained by Jinghao Hu.
Special thanks to those who contributed to this project:
Spotted an error or have suggestions? Submit a pull request to improve UnifieReadme.
Distributed under the MIT License © 2024 Jinghao Hu | UCAS. See LICENSE
for more details.