ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Coffee​2​Js

by mattseymour ALL

Sublime plugin, helpers to convert coffee to js

Details

Installs

  • Total 9K
  • Win 3K
  • Mac 4K
  • Linux 2K
Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4
Windows 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-coffee-to-js

Sublime plugin to convert coffeescript to javascript.

Functions:

  • Convert .coffee file to .js (keymap - shift+alt+f)
  • Copy coffeescript to clipboard paste as javascript (keymap - shift+alt+j)
  • Convert highlighted code snippet into javascript (keymap - shift+alt+v)

Requirements:

Coffee to Javascript requires a coffee script binary to be accessible on the users path. This is commonly achieved using nodeJS and installing coffee through npm.

Plugin Settings:

Default settings:

{
      "coffeeCommand": "coffee",
      // inline operations, paste, code block
      "inlineArgs": ["--no-header", "--bare"],
      // File operation only
      "fileArgs": ["--no-header",],
      "debug": false,
    }
coffeeCommand

This is the executable which is used to convert coffeescript to javascript. This can be changed to be another coffeescript executable (either on the path or absolute path).

inlineArgs

These are the arguements which affect the inline functions provided by this plugin. (Convert highlighted code snippet into javascript, copy coffeescript to clipboard paste as javascript). This should be a list of strings. Default arguments will provide javascript with no header and no function wrapping.

fileArgs

These are the arguements which will affect the file functions provided by this plugin. (Convert .coffeescript file to .js). This should be a list of strings. Default arguments will provide javascript with no header.

debug

This option prints to console the command which is executed to convert coffeescript into javascript.