stn
@cartok/svg-tag-names
npm i @cartok/svg-tag-names
stn

@cartok/svg-tag-names

List of known SVG tag names

by Titus

1.1.2 (see all)License:MITTypeScript:Not Found
npm i @cartok/svg-tag-names
Readme

svg-tag-names Build Status

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 tag-names.

Installation

npm:

npm install svg-tag-names

Usage

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

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

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.

License

MIT © Titus Wormer

Downloads/wk

5

GitHub Stars

22

LAST COMMIT

2mos ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.1.2
latest
4yrs ago
No alternatives found
No tutorials found
Add a tutorial