core script for CoffeeScript REPL.
simple repl using prompt.
<script src="coffeescript.js"></script>
<script>
var repl = new CoffeeScriptREPL();
var input;
while(input = prompt(repl.log+"\n"+repl.buffer, repl.defaultInput)){
repl.terminal(input);
}
</script>
.help show repl options
.[n] revert last nth input
.hist view input history
.clear clear log
c[space][enter]
cons[space][enter]
console.[space][enter]
console.lo[space][enter]
autosuggestion
log(str) alt console.log()
clear() alt console.clear()
dir(obj [, depth])
alt console.dir()
type(obj) alt typeof()
load(url) load js file
$$[n] last nth result variable
Simple CoffeeScript REPL Bookmarklet for Safari on iOS
javascript:(function(d,u,x,c,a){function a(a,b,c){c=d.createElement("script");c.src=a;c.onload=b;d.body.appendChild(c)}a(u,function(){a(c,function(){x=new CoffeeScriptREPL();while(c=prompt(x.log+"\n"+x.buffer,x.defaultInput))x.terminal(c)})})}(document,"https://coffeescript-repl.github.io/coffee-script.js",null,"https://coffeescript-repl.github.io/coffee-repl.js"))