ShenNong_Simple/packages/字体精简工具/node_modules/is-svg/readme.md
2024-10-30 15:28:42 +08:00

24 lines
448 B
Markdown

# is-svg [![Build Status](https://travis-ci.org/sindresorhus/is-svg.svg?branch=master)](https://travis-ci.org/sindresorhus/is-svg)
> Check if a String/Buffer is [SVG](http://en.wikipedia.org/wiki/Scalable_Vector_Graphics)
## Install
```sh
$ npm install --save is-svg
```
## Usage
```js
isSvg('<svg xmlns="http://www.w3.org/2000/svg"><path fill="#00CD9F"/></svg>');
//=> true
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)