Skip to content

Tern & Node.js support

angelozerr edited this page Dec 5, 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 (see Tern-Eclipse-IDE), open Project Properties, click on Tern / Modules item and select the node tern plugin :

Check Node Plugin

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

Require Completion

and completion for module :

node.js completion module

Tern is able to know the module of the 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 :

error

Clone this wiki locally