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

Js​Run

by sindresorhus Mac ALL

Run JavaScript in the browser - Sublime plugin (macOS)

Details

Installs

  • Total 2K
  • Win 4
  • Mac 2K
  • Linux 0
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 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 0 0 0 0 0 0 0
Mac 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 0 0 0 0
Linux 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 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

JsRun

Sublime plugin to run JavaScript in the browser

Lets you quickly run code from Sublime directly in the browser. You can use it to experiment with manipulating websites, overriding existing code, or any other crazy things you come up with. Let me know if you use it for anything interesting.

Install

Install JsRun with Package Control and restart Sublime.

Getting started

Select some code or just highlight a line and choose Run JavaScript in the browser in the Command Palette (Cmd+Shift+P). This will then run the command in the active tab in the frontmost browser window. Switch to the browser window to see the result or have them in split-window to see the result instantly.

Remember to open the Console in Dev Tools to see console.log output.

Options

Set your preferred browser in the settings: chrome (default), chrome_canary, safari, opera

(Settings > Package Settings > JsRun)

Example:

{
    "browser": "chrome_canary"
}

Keyboard shortcut

You can also set up a keyboard shortcut to run the command by opening up “Settings > Key Bindings - User” and adding your shortcut with the js_run command.

Example:

[
    {
        "keys": ["alt+super+j"],
        "command": "js_run"
    }
]

Supported browsers

Currently supports Chrome, Chrome Canary, Safari and Opera on OS X. Firefox doesn't expose JS to AppleScript.