https://github.com/cldwalker/ripl-johnson
A full-featured javascript shell using johnson (mozilla's tracemonkey)
https://github.com/cldwalker/ripl-johnson
Last synced: about 1 year ago
JSON representation
A full-featured javascript shell using johnson (mozilla's tracemonkey)
- Host: GitHub
- URL: https://github.com/cldwalker/ripl-johnson
- Owner: cldwalker
- License: mit
- Created: 2010-12-13T08:36:38.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-12-23T18:54:03.000Z (over 15 years ago)
- Last Synced: 2025-02-14T18:16:32.243Z (over 1 year ago)
- Language: Ruby
- Size: 97.7 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: CHANGELOG.rdoc
- License: LICENSE.txt
Awesome Lists containing this project
README
== Description
A full-featured javscript shell based on {johnson}[https://github.com/jbarnette/johnson] a.k.a
mozilla's tracemonkey. Since this uses {ripl}[http://github.com/cldwalker/ripl], it comes with most
irb functionality: a global config(~/.johnsonrc), autocompletion (very basic currently), history
(~/.johnson_history) and multi-line support.
== Install
Install the gem with:
sudo gem install ripl-johnson
== Usage
$ ripl johnson
# tab completion
js>> f[TAB]
false finally for function
js>> fu[TAB]
js>> function
# multi-line support (Ctrl-C to break out of incorrect multi-line)
js>> function ohai() {
> print("This ain't no browser");
> }
=> nil
>> o[TAB]
>> ohai
>> ohai()
This ain't no browser
=> nil
== Todo
* Add autocompletion for js methods!
* Remove ruby autocompletions from bond
* Add commandline option to autoload js files from rails projects
* Add commandline option for loading files (like johnson executable)
* Add rb and js functionality (like johnson executable)
* Add _ for last js result