Nothing's plumb meaningless
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

block-elements

1.2.0 • Public • Published

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

install

npm i block-elements

Downloadsweekly downloads

13,418

version

1.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability