Skip to content

Instantly share code, notes, and snippets.

@robbles
Created May 27, 2012 01:23
Show Gist options
  • Save robbles/2795807 to your computer and use it in GitHub Desktop.
Save robbles/2795807 to your computer and use it in GitHub Desktop.
Rlwrap completion for node.js / JavaScript
require
global
process
console
log
error
warning
Buffer
__filename
__dirname
module
exports
setTimeout
clearTimeout
setInterval
clearInterval
process
break
case
catch
continue
debugger
default
delete
do
else
finally
for
function
if
in
instanceof
new
return
switch
this
throw
try
typeof
var
void
while
with
prototype
__proto__
constructor
hasOwnProperty
isPrototypeOf
propertyIsEnumerable
toLocaleString
toString
valueOf
Math
E
LN2
LN10
LOG2E
LOG10E
PI
SQRT1_2
SQRT2
abs
acos
asin
atan
atan2
ceil
cos
exp
floor
log
max
min
pow
random
round
sin
sqrt
tan
String
anchor
big
blink
bold
charAt
charCodeAt
concat
constructor
fixed
fontcolor
fontsize
indexOf
italics
lastIndexOf
length
link
localeCompare
match
replace
search
slice
small
split
strike
sub
substr
substring
sup
toLocaleLowerCase
toLocaleUpperCase
toLowerCase
toString
toUpperCase
trim
trimLeft
trimRight
utf8
utf8ToCodepoint
utf8ToString
utf8URL
valueOf
@robbles
Copy link
Author

robbles commented May 27, 2012

Use with something like this:
rlwrap -p Green -S "node >>> " -r --always-readline -f js_completions node

You can make an alias for node:
alias inode='rlwrap -p Green -S "node >>> " -r --always-readline -f js_completions node'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment