is-svg
v5.1.0
Published
Check if a string is SVG
Downloads
6,487,113
Maintainers
Readme
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