h1. An Interactive Javascript Console(ijc) running in web browsers
to make it simple, just treat it as an irb for javascript, performing read-eval-print loop forever, but only runs in your browser
h3. license
BSD-like, you can freely use and distribute this piece of code commercially or non-commercially, given the COPYRIGHT is kept.
h3. install
suppose $proj is the directory to store ijc
@cd $proj@
@git clone git://github.com/myjpa/ijc.git@
use your browser to open $proj/ijc/ijc.html
h3. features:
h4. TODO
- evaluate javascripts in an iframe sandbox
- more debugging functions, like benchmark function, log function....
h4. implemented
- the return value of your code will be inspected in the output window(the top textarea).
- support command history.
- utility functions to print string onto output window(see instructions for details).
- readline style auto-completion.
- load and debug other javascript library.
h4. unimplemented
h3. instruction:
- enter javascript code snippets in the bottom text box, and hit 'return' to evaluate the result
- use up arrow key and down arrow key to browse history.
- utility functions:
ijc.puts(obj) : println an obj in output window
ijc.print(obj) : print an obj in output window
ijc.inspect(obj) : return an inspection of the object as a string.
ijc.mixin() : mixin the utility functions above into global namespect.
ijc.unmixin() : revoke the mixin.
ijc.loadjs(url_to_javascript) : dynamically load & evaluate javascript file.
ijc.loadcss(url_to_css) : dynamically load & evaluate stylesheet file.
ijc.callstack() : returns an array of all functions in callstack.
h3. known issues: