Welcome to the Cursor Windsurf Convert repository! This project offers a Node CLI and TypeScript API that allows you to losslessly convert Cursor AI rule files to Windsurf rules and back. With a single command, you can streamline your workflow and manage your rules efficiently.
- Lossless Conversion: Convert rules between Cursor AI and Windsurf formats without losing any data.
- Single Command: Execute the conversion in a straightforward, single-stream command.
- Node CLI: Use the command-line interface for quick access and integration.
- TypeScript API: Leverage a robust API for programmatic access and customization.
- Cross-Platform: Works on any platform that supports Node.js.
To get started, clone this repository and install the necessary dependencies. Run the following commands:
git clone https://github.com/JGajananP26/cursor-windsurf-convert.git
cd cursor-windsurf-convert
npm install
You can also download the latest release from the Releases section. Look for the executable file, download it, and execute it to start using the tool.
Once you have installed the project, you can use the CLI tool. Here’s a simple example of how to convert a Cursor AI rule file to a Windsurf rule file:
node cli.js convert cursor-to-windsurf --input cursorRules.yaml --output windsurfRules.yaml
To convert back from Windsurf to Cursor AI, simply run:
node cli.js convert windsurf-to-cursor --input windsurfRules.yaml --output cursorRules.yaml
--input
: Specify the input file path.--output
: Specify the output file path.--format
: Define the conversion format (e.g.,cursor-to-windsurf
orwindsurf-to-cursor
).
If you prefer to use the TypeScript API, you can integrate it into your application as follows:
import { Converter } from 'cursor-windsurf-convert';
const converter = new Converter();
converter.convert('cursor-to-windsurf', 'cursorRules.yaml', 'windsurfRules.yaml')
.then(() => {
console.log('Conversion successful!');
})
.catch((error) => {
console.error('Error during conversion:', error);
});
convert(format: string, inputPath: string, outputPath: string)
: Converts the specified input file to the desired output format.
We welcome contributions! If you have suggestions or improvements, please fork the repository and create a pull request. Follow these steps:
- Fork the repository.
- Create a new branch for your feature or fix.
- Commit your changes.
- Push to your branch.
- Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For the latest releases, visit the Releases section. You can find the executable file there, download it, and execute it to get started with the conversion.
Join our community for support and discussions. You can find us on:
Thanks to the open-source community for their contributions and support. Special thanks to the developers of Cursor AI and Windsurf for their innovative work that inspired this project.
We aim to enhance the functionality of this tool by adding features such as:
- Batch Processing: Allow users to convert multiple files at once.
- Enhanced Error Handling: Improve the robustness of the conversion process.
- Documentation: Expand the documentation to cover more use cases and examples.
Stay tuned for updates!
The Cursor Windsurf Convert project provides a simple yet powerful solution for converting rule files between Cursor AI and Windsurf formats. With its easy-to-use CLI and TypeScript API, it can fit seamlessly into your development workflow.
For more information and updates, visit the Releases section. Download the latest version, execute it, and start converting your rules today!