Skip to content

Instantly share code, notes, and snippets.

View hparra's full-sized avatar

H. G. Parra hparra

View GitHub Profile
import subprocess
import sublime, sublime_plugin
import os
PLUGIN_FOLDER = os.path.dirname(os.path.realpath(__file__))
SCRIPT_PATH = PLUGIN_FOLDER + '/node_modules/jsfmt/lib/run.js'
NODE_PATH = '/usr/local/bin/node' # Change to your node location (How can we `/usr/bin/env node` here?)
class FormatJavascript(sublime_plugin.TextCommand):
def run(self, edit):