A simple web-based tool to convert YAML to JSON and vice versa. This app is built using React and runs in the browser. It provides an easy-to-use interface with two text areas, where you can paste your YAML or JSON data and convert it between formats with just a click!
- YAML ↔ JSON Conversion: Convert YAML to JSON and vice versa.
- Dark Mode: Toggle between light and dark modes for better readability.
- Tab Support: Properly inserts spaces when pressing the "Tab" key inside text areas.
- Simple and Intuitive UI: Easy to use with a clean interface.
- Deploy Easily:
npm run buildandnpm run deploy
You can try the live demo of this tool at Github Page: Yaml Json Converter
To run the tool locally:
- Clone the repository:
git clone https://github.com/doctorlai/yaml-json-converter.git
cd yaml-json-converter- Install dependencies:
npm install- Start the development server:
npm run dev- Tests:
## or simply: npm test
npm run test- Test coverage:
npm run coverage- Format Code:
npm run format
## Fix the code style automatically
npm run format:fix- Visit http://localhost:5173/yaml-json-converter/ to start using the tool locally.
- Enter YAML data in the YAML input box.
- Click "Convert to JSON →" to convert the YAML to JSON.
- Enter JSON data in the JSON input box.
- Click "← Convert to YAML" to convert the JSON to YAML.
You can also switch between Light Mode and Dark Mode by clicking the button on the top right corner.
Feel free to fork this project and submit issues or pull requests for improvements!
- Fork the repository.
- Create a feature branch:
git checkout -b feature-branch. - Commit your changes:
git commit -am 'Add new feature'. - Push to the branch:
git push origin feature-branch. - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Here is the AI generated wiki
