node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

part-element-type

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