is-svg-attribute
Check if an attribute name is an SVG attribute.
npm install is-svg-attribute
API
var isSVGAttribute = require('is-svg-attribute')
isSVGAttribute('cx') // true
isSVGAttribute('gradientTransform') // true
isSVGAttribute('class') // false