Socket
Book a DemoInstallSign in
Socket

dev-component

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev-component

Inspect objects associated to DOM elements in web inspector

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

dev

Inspect objects associated to DOM elements in web inspector.

Installation

$ component install component/dev

Usage

When enabled via localStorage.dev = true the object is assigned as _ on the element for inspection in the "properties" panel. This means when the element is selected $._ is also available. A name may be passed instead of "" however "" is nice as it will display early in the properties list.

API

inspect(el, obj, [name])

Associate obj with el as name defaulting to "_".

License

MIT

FAQs

Package last updated on 29 Mar 2013

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