block-elements
Array of "block level elements" defined by the HTML specification
Last updated 8 years ago by tootallnate .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install block-elements 
SYNC missed versions from official npm registry.

block-elements

Array of "block level elements" defined by the HTML specification

Exports an Array of "block level element" node names as defined by the HTML spec.

The list is programatically generated from MDN.

Usage

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

Current Tags

  • 1.2.0                                ...           latest (8 years ago)

4 Versions

  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE