Code Runner is a simple bash script that allows you to compile and run programs written in various programming languages. This script supports C/C++, Python, Java, JavaScript (Node.js), and Ruby.
To use Code Runner, simply provide the path to your source file as an argument. The script will detect the file's extension and execute it accordingly.
./code-runner.sh <source_file>
- C/C++ (.c, .cpp)
- Python (.py)
- Java (.java)
- JavaScript (.js)
- Ruby (.rb)
- Compiles and runs C/C++ programs with automatic cleanup of compiled binaries.
- Executes Python, Java, JavaScript, and Ruby scripts directly.
Contributions are welcome! If you find any bugs or want to add support for more languages, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.