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

Java​Script Scratch Pad

by Bijoy Thomas ST3

A flexible JavaScript scratch pad for Sublime Text 3

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

Sublime JavaScript Scratch Pad

Try out JS right from Sublime

Requirements

Needs the NodeJS node command to be available in the shell PATH and that's about it for trying out vanilla JS. If you need to include external JS libs, you can configure them in the plugin settings.

Installation

Either through Package Control or to install it manually with Git: Clone the repository in your Sublime Text 3 Packages directory:

git clone https://github.com/bijoythomas/sublime-jsscratchpad JsScratchPad

The “Packages” directory should be located at:

  • OS X:

    ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/

  • Linux:

    ~/.Sublime\ Text\ 3/Packages/ or ~/.config/sublime-text-3/Packages/

  • Windows:

    %APPDATA%/Sublime Text 3/Packages/

The plugin should be picked up automatically. If not, restart Sublime Text.

Usage

Use the JS Scratch Pad Sublime command to open a scratch pad in Sublime.

Type in your JS code and hit alt+shift+r to run it.

The plugin adds the following key bindings.

[
  {
    "keys": ["alt+shift+r"], "command": "js_scratch_pad"
  }
]

Settings

You can tweak the plugin settings through Package Settings > JavaScript Scratch Pad to provide the path to the node modules dir and how you would like to access the imported libs in the scratch pad

{
  "node_modules_path": "/Users/me/project/node_modules",
  "libs" : {
    "ramda": "R", // access ramda functions with the R. prefix
    "moment": "moment", // access moment functions with the moment. prefix
    "q" : "Q" // access Q library functions with Q. prefix
  }
}

Screenshot