Converting a Javascript project to Coffeescript

If you are writing a lot of Javascript code, you will surely be tempted by CoffeeScript. To try it out, you can start writing your new files in coffeescript and let your old files be. However, if you are refactoring every now and then, you may wanna convert your old files to coffeescript as well. There is an excellent converter by Rico that you can use to convert your files one at a time. Since I had a large number of files organized in different folders inside the main folder, I wrote a small script to help with conversion. Check it out

To use the script, just change the first three variables. Its a good idea to backup your files before trying out the tool.



blog comments powered by Disqus
Hana Mohan
Hana Mohan