1 | # is-svg [![Build Status](https://travis-ci.org/sindresorhus/is-svg.svg?branch=master)](https://travis-ci.org/sindresorhus/is-svg)
|
2 |
|
3 | > Check if a String/Buffer is [SVG](http://en.wikipedia.org/wiki/Scalable_Vector_Graphics)
|
4 |
|
5 |
|
6 | ## Install
|
7 |
|
8 | ```sh
|
9 | $ npm install --save is-svg
|
10 | ```
|
11 |
|
12 | ```sh
|
13 | $ bower install --save is-svg
|
14 | ```
|
15 |
|
16 | ```sh
|
17 | $ component install sindresorhus/is-svg
|
18 | ```
|
19 |
|
20 |
|
21 | ## Usage
|
22 |
|
23 | ```js
|
24 | isSvg('<svg xmlns="http://www.w3.org/2000/svg"><path fill="#00CD9F"/></svg>');
|
25 | //=> true
|
26 | ```
|
27 |
|
28 |
|
29 | ## License
|
30 |
|
31 | MIT © [Sindre Sorhus](http://sindresorhus.com)
|