Socket
Book a DemoInstallSign in
Socket

inspect-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

inspect-component

Inspect objects associated to DOM elements in web inspector

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

inspect

Inspect objects associated to DOM elements in web inspector.

Installation

$ component install component/inspect

Usage

By utilizing .dataset (and leaking memory) in development you can inspect objects associated with a given DOM element. Calls to inspect(el, obj) in production simply no-op. To enable set localStorage.inspect = true. In web inspector select a DOM node which has a data-inspect attribute, and execute inspect($0).

API

inspect(el, obj)

Associate obj with el.

inspect(el)

Return object associated with el.

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