Tern & Node.js support - angelozerr/tern.java GitHub Wiki
tern.js provides the node Tern plugin which gives a support for Node.js.
After installing and converting your project as Tern Project, go at Tern project property, click on Tern / Modules item and select the node tern plugin :
After that you can benefit with Node.js completion on require :
and completion for module :
Tern is able to know the module of the require and if you write require('fs'), you can benefit from fs functions completions :
Tern is able to know the type of the function argument and you can benefit from err functions completion :
Node Lint
If you select Node lint, you can benefit with validation for require module :