JavaScript Scratch Pad
A flexible JavaScript scratch pad for Sublime Text 3
Details
Installs
- Total 2K
- Win 1K
- Mac 407
- Linux 255
Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 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 |
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
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
}
}