is-svg
v1.0.1 svg vector graphics image img pic picture type detect and 6 more...
is-svg
Check if a string is SVG
Install
npm install is-svg
Usage
import isSvg from 'is-svg';
isSvg('<svg xmlns="http://www.w3.org/2000/svg"><path fill="#00CD9F"/></svg>');
//=> true
npm i [email protected]
Metadata
- MIT
- >=0.10.0
- Sindre Sorhus
- released 12/9/2014