is-svg
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

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

Package Sidebar

Install

npm i is-svg

Weekly Downloads

1,794,132

Version

5.0.0

License

MIT

Unpacked Size

3.19 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus