Wondering what’s next for npm?Check out our public roadmap! »

    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

    16,476

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • avatar