Skip to content

Tern & Node.js support

Angelo edited this page Mar 14, 2014 · 9 revisions

tern.js provides the node Tern plugin which gives a support for Node.js.

After installing and converting your project as Tern Project https://github.com/angelozerr/tern.java/wiki/Tern-Eclipse-IDE , you can check the node plugin :

Check Node Plugin

After that you can benefit with Node.js completion on require :

Require Completion

Tern is able to know the module of teh require and if you write require('fs'), you can benefit from fs functions completions :

FS Completion

Tern is able to know the type of the function argument and you can benefit from err functions completion :

jQuery

Clone this wiki locally