0.0
No commit activity in last 3 years
No release in over 3 years
A full-featured javscript shell based on johnson a.k.a mozilla's tracemonkey. Since this uses ripl, it comes with most irb functionality: a global config(~/.johnsonrc), autocompletion (very basic currently), history (~/.johnson_history) and multi-line support.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.0.0.pre3
>= 0.2.8
 Project Readme

Description¶ ↑

A full-featured javscript shell based on johnson a.k.a mozilla’s tracemonkey. Since this uses 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