/sublime_js2coffee

Sublime plugin for fast converting js to coffeescript and coffee to javascript

Primary LanguagePython

Sublime plugin for converting js2Coffee and coffee2js on fly

About

This plugin converts selection of js to coffeescript and coffee to javascript Just use ctrl + alt + f

Installation

Install npm and coffee with your package manager js2coffee npm plugin is needed too

Clone or download the files and copy them to your Packages folder. You can access it via Preferences -> Browse Packages in sublime text.

  • git clone git@github.com:taygius/sublime_js2coffee.git ~/.config/sublime-text-2/Packages/sublime_js2coffee/

Usage

ctrl + shift + P and type Format: js2Coffee, or you can use the ctrl + alt + f keybinding.

Unit tests

  • python -m unittest TestjsCoffeeFunctions

PS. Windows not supported

License

The MIT License

Copyright (c) 2012 taygius

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.