$ gnpm install is-svg
Check if a string is SVG
npm install is-svg
import isSvg from 'is-svg'; isSvg('<svg xmlns="http://www.w3.org/2000/svg"><path fill="#00CD9F"/></svg>'); //=> true
Copyright 2013 - present © cnpmjs.org | Home |