March 23, 2019

169 words 1 min read

heapwolf/scratches

heapwolf/scratches

A scratchpad with node & browser apis.

repo name heapwolf/scratches
repo link https://github.com/heapwolf/scratches
homepage
language JavaScript
size (curr.) 3316 kB
stars (curr.) 1200
created 2018-01-19
license

screenshot

A javascript/node.js scratchpad.

Download the latest release here.

DESCRIPTION

This is just a simple editor that evaluates your source text as you type. It’s electron, so you have the node and browser APIs.

HOW IT WORKS

Your script will get evaluated when you stop typing. Use console.log('hello') to get output in the right-hand panel.

screenshot

Includes a dark mode and a document window to play with.

docwindow

To use modules from npm, just set your working directory to a place where those modules are installed. For example you can create a directory (call it whatever you want)…

mkdir ~/sandbox
cd sandbox
npm install preact

Then you can set your Working Directory to ~/sandbox from the Options menu…

image

You can also start Scratches from the command line. You could create a symbolic link to the binary if you often start it from the commandline…

/Applications/Scratches.app/Contents/MacOS/Scratches .
comments powered by Disqus