Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/farwayer/is-svg-fast

Fast check if a string is svg
https://github.com/farwayer/is-svg-fast

Last synced: about 1 month ago
JSON representation

Fast check if a string is svg

Awesome Lists containing this project

README

        

# is-svg-fast

The lib provides a fast basic check if a string is svg image (Node.js and
browser)

## How to use

```bash
npm install is-svg-fast
```
or
```bash
yarn add is-svg-fast
```

```js
import {isSvg} from 'is-svg-fast'

const svg = `

Example SVG file

`

isSvg(svg) // true
```