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

  • 0.0.2
  • github.​com
  • github.​com
  • 3 months ago
  • 16 minutes ago
  • 3 months ago

Installs

  • Total 270
  • Win 157
  • OS X 76
  • Linux 37
Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8
Windows 0 0 0 2 2 1 0 0 2 0 2 0 1 0 0 0 2 1 2 3 1 1 0 1 1 3 1 4 1 0 3 3 4 3 1 3 1 4 3 4 1 2 0 0 1 2
OS X 0 0 0 0 0 1 0 0 0 0 1 1 1 0 0 1 1 1 0 1 2 0 1 1 3 0 1 0 0 0 1 1 0 1 0 1 1 1 0 0 0 0 0 0 0 0
Linux 1 0 0 0 1 1 0 0 1 1 0 0 0 3 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 2 0

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. Screenshot

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

Screenshot