Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

tern-node-extension

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tern-node-extension

Extension for Tern NodeJS to provide validation.

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

tern-node-extension

Build Status NPM version

tern-node-extension is a plugin which adds support validation for node require to the JavaSript code intelligence system Tern.

Here a sample with Eclipse :

Node lint

See here for more information about node lint with Eclipse.

Installation

tern-node-extension works with the NodeJS [Tern Server][tern-server], and within a browser.

The easiest way to install tern-node-extension is to use a recent version of [npm][npm]. In the directory where you installed the [tern package][tern-npm], simply run

$ npm install tern-node-extension

Configuration

node-extension tern plugin extends node tern plugin to support validation.

With Node.js

In order for Tern to load the tern-node-express plugin once it is installed, you must include node-extension in the plugins section of your [Tern configuration file][tern-config] and node.

Here is a minimal example .tern-project configuration file:

{
  "plugins": {
    "node": {},
    "lint": {},
    "node-extension": {}
  }
}

With WebBrowser (CodeMirror)

See demos/express.html

Structure

The basic structure of the project is given in the following way:

  • node-extension.js the tern plugin.
  • demos/ demos with node lint tern plugin which use CodeMirror.

FAQs

Package last updated on 14 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts