Socket
Socket
Sign inDemoInstall

tern-browser-extension

Package Overview
Dependencies
12
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tern-browser-extension

A Tern plugin adding advanced features for Browser.


Version published
Maintainers
1
Install size
10.3 MB
Created

Readme

Source

tern-browser-extension

Build Status NPM version

tern-browser-extension is a tern plugin which extends browser.json and provides the following features :

Use tern inside HTML

The plugin extracts JavaScript code from scripts tags, before creating the acorn AST. The plugin also resolves script tags with the src attribute and HTML Imports.

Element ID

  • get completion for element ids when document.getElementById is used:

CodeMirror & GetElementById completion

  • go at the definition of the attribute id :

CodeMirror & GetElementById definition

  • validate element id if the editor supports tern-lint :

CodeMirror & GetElementById validation

  • returns the well HTML element instance (eg : HTMLInputElement) when getElementById or createElement is used.

CSS Selector

  • get completion for CSS ID selector when document.querySelector is used:

CodeMirror & QuerySelector completion

  • validate syntax of CSS selector if the editor supports tern-lint :

CodeMirror & QuerySelector validation

Event type

  • get completion for Event type when document.addEventListener is used:

CodeMirror & Event type completion

  • validate existing of Event type if the editor supports tern-lint :

CodeMirror & Event type validation

Keywords

FAQs

Last updated on 23 Sep 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc