A tool for organizing and managing solutions to Codewars katas. This project helps in maintaining a structured repository of your completed katas, updating Markdown tables with new solutions, and providing easy access to kata information and solutions.
- Automatically updates README and kyu-specific Markdown files with new kata information.
- Inserts new rows into Markdown tables, maintaining a consistent structure.
- Handles file reading and writing operations with error handling.
- Provides easy navigation to kata solutions and their respective directories.
-
Clone the repository:
git clone https://github.com/DreasWeiss/4codewars.git
-
Navigate to the project directory:
cd 4codewars
-
Install the dependencies:
npm install
-
Prepare the kata information in the following format:
const kataInfo = { title: "Kata Title", kyu: "6", text: "Description of the kata", kataJS: "kata.js", url: "https://www.codewars.com/kata/xxxxxx", titleCamelCase: "KataTitle" };
-
Call the
updateTable
function with the kata information:const updateTable = require('./updateTable'); updateTable(kataInfo);
-
This will automatically update the
README.md
and the correspondingkyu
Markdown file with the new kata information.
- file: 1kyu.md
- file: 2kyu.md
- file: 3kyu.md
- file: 4kyu.md
- file: 5kyu.md
- file: 6kyu.md
- file: 7kyu.md
- file: 8kyu.md
- file: README.md
- file: beta.md
- dir: katas
- dir: kataNameCamelCase
-
kata.js
-
README.md
-
addNewRowInMdTable.js
: Contains the function to add a new row in a Markdown table. -
updateTable.js
: Contains the function to update the Markdown tables with new kata information. -
README.md
: Main readme file for the project, updated with new kata information. -
katas/
: Directory containing subdirectories for each kata, named in camel case.
Contributions are welcome! Please feel free to submit a pull request.
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
. - Make your changes.
- Commit your changes:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature/your-feature-name
. - Open a pull request.
This project is licensed under the MIT License.