     stdout  = (output) -> onData output
     stderr  = (output) -> onData output
     exit    = (code)   -> onFinish code
+    # console.log [command, args]
     process = new BufferedProcess {command, args, options, stdout, stderr, exit}
 
   writeTempfile: (text) ->

os   = require 'os'

class Transformer
  needSave:  true
  command:   null
  args:      null
  options:   null
  tempFile:  null
  extension: null
  outFile:   path.join os.tmpdir(), 'transformer'

  constructor: (@editor) ->
    selection = @editor.getLastSelection()


class JavaScript extends Transformer
  command: 'node'
  initialize: ->
    @args = ["--harmony", @URI]

class Go extends Transformer
  initialize: -> @args = ['run', @URI]
