\begin{quote}
Check if a string or buffer is \href{https://en.wikipedia.org/wiki/Scalable_Vector_Graphics}{\texttt{ SVG}} \end{quote}
\hypertarget{md_sfcode_node_modules_is_svg_readme_autotoc_md13229}{}\doxysection{Install}\label{md_sfcode_node_modules_is_svg_readme_autotoc_md13229}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install is-\/svg }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_svg_readme_autotoc_md13230}{}\doxysection{Usage}\label{md_sfcode_node_modules_is_svg_readme_autotoc_md13230}

\begin{DoxyCode}{0}
\DoxyCodeLine{const isSvg = require('is-\/svg');}
\DoxyCodeLine{}
\DoxyCodeLine{isSvg('<svg xmlns="{}http://www.w3.org/2000/svg"{}><path fill="{}\#00CD9F"{}/></svg>');}
\DoxyCodeLine{//=> true }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_svg_readme_autotoc_md13231}{}\doxysection{Edge cases}\label{md_sfcode_node_modules_is_svg_readme_autotoc_md13231}
This module performs a quick-\/and-\/dirty check. It\textquotesingle{}s fast, but in certain cases it will give incorrect results.


\begin{DoxyItemize}
\item Returns {\ttfamily true} for an SVG-\/like string that isn\textquotesingle{}t well-\/formed or valid\+: {\ttfamily $<$svg$>$$<$div$>$$<$/svg$>$}
\end{DoxyItemize}

If you want to make certain that your SVG is {\itshape valid}, try parsing it with \href{https://github.com/polotek/libxmljs}{\texttt{ libxmljs}}.\hypertarget{md_sfcode_node_modules_is_svg_readme_autotoc_md13232}{}\doxysection{License}\label{md_sfcode_node_modules_is_svg_readme_autotoc_md13232}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 