1.0.5 • Published 1 year ago

is-svg-fast v1.0.5

Weekly downloads
-
License
WTFPL
Repository
github
Last release
1 year ago

is-svg-fast

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

How to use

npm install is-svg-fast

or

yarn add is-svg-fast
import {isSvg} from 'is-svg-fast'

const svg = `<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"
     viewBox="0 0 30 30">
  <desc>Example SVG file</desc>
  <rect x="10" y="10" width="10" height="10" fill="red"/>
</svg>`

isSvg(svg) // true
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago