82

GitHub - 0x00A/scratches: A scratchpad. Read, Evaluate, Print, Loop, but with a...

 6 years ago
source link: https://github.com/0x00A/scratches
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

logo

A javascript and node.js scratchpad.

Download the latest release here.

DESCRIPTION

This is an editor that evaluates your source text as you type. It's electron, so you have the node and browser APIs. Careful to only use code you trust.

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

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

You can also start the app 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 .

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK