@f/svg-elements

A list of SVG elements

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jul 26, 2016Jan 6, 2016Minified + gzip package size for @f/svg-elements in KB

Readme

svg-elements

Build status Git tag NPM version Code style

A list of SVG elements

Installation

$ npm install @f/svg-elements

Usage

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.