Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonyshort/is-svg-attribute
Check if a string is an SVG attribute
https://github.com/anthonyshort/is-svg-attribute
Last synced: 24 days ago
JSON representation
Check if a string is an SVG attribute
- Host: GitHub
- URL: https://github.com/anthonyshort/is-svg-attribute
- Owner: anthonyshort
- Created: 2015-07-08T04:24:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-14T15:34:28.000Z (almost 9 years ago)
- Last Synced: 2024-04-15T03:16:20.369Z (7 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# is-svg-attribute
Check if an attribute name is an SVG attribute.
```
npm install is-svg-attribute
```### API
```js
var isSVGAttribute = require('is-svg-attribute')isSVGAttribute('cx') // true
isSVGAttribute('gradientTransform') // true
isSVGAttribute('class') // false
```