$ npm install block-elements
Exports an Array of "block level element" node names as defined by the HTML spec.
The list is programatically generated from MDN.
As an Array:
var blocks = require('block-elements')
blocks.indexOf('div') > -1 // true
As an Object:
var hash = require('block-elements/hash')
hash['div'] && hash['DIV'] // true
As a Set:
var set = require('block-elements/set')
set.has('div') && set.has('DIV') // true
© 2010 - cnpmjs.org x YWFE | Home | YWFE