@f/svg-elements
v1.0.1
Published
A list of SVG elements
Downloads
530
Readme
svg-elements
A list of SVG elements
Installation
$ npm install @f/svg-elementsUsage
Just exports an array of svg element names. Those element names are:
animate circle clipPath defs ellipse g line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan use
Example
var svgElements = require('@f/svg-elements')
function isSvg (tag) {
return svgElements.indexOf(tag) !== -1
}License
MIT
