swank-js
support auto completion. I used it for a while with auto-complete
mode and ac-slime
. Here's my setup:
(eval-after-load 'auto-complete
'(progn
(add-to-list 'ac-modes 'slime-repl-mode)
(add-to-list 'ac-modes 'js2-mode)
(add-to-list 'ac-modes 'js-mode)
(add-hook 'slime-mode-hook 'set-up-slime-ac)
(add-hook 'slime-repl-mode-hook 'set-up-slime-ac)))
(eval-after-load 'slime
'(progn
(setq slime-protocol-version 'ignore
slime-net-coding-system 'utf-8-unix
slime-complete-symbol*-fancy t
slime-complete-symbol-function 'slime-fuzzy-complete-symbol)
(slime-setup '(slime-repl slime-js))))
I'm not sure about 3rd party API but I was able to auto complete my own defined modules.
Edit: Apparently it can auto complete anything require-able. If you connect to web remote, it can even complete DOM API.