Skip to content

micro-js/svg-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published