@f/html-namespace

1.0.0 • Public • Published

html-namespace

Build status Git tag NPM version Code style

HTML element namespace URI

Installation

$ npm install @f/html-namespace

Usage

var htmlNs = require('@f/html-namespace')
var svgNs = require('@f/svg-namespace')

function elementType (node) {
  switch (node.namespaceURI) {
    case htmlNs:
      return 'html'
    case svgNs:
      return 'svg'
  }
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @f/html-namespace

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • f