part-element-name

Get element name, node.js and browser.

npm install part-element-name
1 downloads in the last week
4 downloads in the last month

Part Element Name

Get element name, node.js and browser.

Installation

node.js:

$ npm install part-element-name

browser:

$ component install part/element-name

Example

var name = require('part-element-name');
name(document.querySelector('h1')); // "h1"

Licence

MIT

npm loves you