Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/farwayer/is-svg-fast
- Owner: farwayer
- Created: 2023-03-06T01:05:25.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T02:05:18.000Z (almost 2 years ago)
- Last Synced: 2024-04-26T18:47:46.544Z (9 months ago)
- Language: JavaScript
- Size: 850 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```