svg-tag-names
List of known SVG tag names
Last updated 6 years ago by wooorm .
MIT · Repository · Bugs · Original npm
$ cnpm install svg-tag-names 
SYNC missed versions from official npm registry.

svg-tag-names

Build Downloads Size

List of known SVG tag names. Includes the elements from SVG 1.1, SVG Tiny 1.2, and SVG 2.

The repo contains a script to crawl specs to include newly introduced names.

Install

npm:

npm install svg-tag-names

Use

var svgTagNames = require('svg-tag-names')

console.log(svgTagNames.length) // => 94

console.log(svgTagNames.slice(0, 20))

Yields:

[
  'a',
  'altGlyph',
  'altGlyphDef',
  'altGlyphItem',
  'animate',
  'animateColor',
  'animateMotion',
  'animateTransform',
  'animation',
  'audio',
  'canvas',
  'circle',
  'clipPath',
  'color-profile',
  'cursor',
  'defs',
  'desc',
  'discard',
  'ellipse',
  'feBlend'
]

API

svgTagNames

Array.<string> — List of case-sensitive tag names.

Related

License

MIT © Titus Wormer

Current Tags

  • 2.0.1                                ...           latest (6 years ago)

2 Versions

  • 3.0.1                                ...           4 years ago
  • 2.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (13)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org