part-element-type

Get DOM Element type, for node or the browser.

npm install part-element-type
4 downloads in the last month

Part Element Type

Get DOM Element type, for node or the browser.

Installation

node.js:

$ npm install part-element-type

browser:

$ component install part/element-type

Example

var type = require('part-element-type');
type(document.querySelector('h1')) // 1

Licence

MIT

npm loves you