{"name":"is-svg","version":"6.1.0","description":"Check if a string is SVG","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-svg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["svg","vector","graphics","image","picture","type","detect","check","is","string"],"dependencies":{"@file-type/xml":"^0.4.3"},"devDependencies":{"@types/node":"^22.15.3","ava":"^6.2.0","time-span":"^5.1.0","tsd":"^0.32.0","xo":"^0.60.0"},"_id":"is-svg@6.1.0","gitHead":"b38f4cd7dff15133a04f7fbb133805e982ed3a17","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/is-svg/issues"},"homepage":"https://github.com/sindresorhus/is-svg#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-i7YPdvYuSCYcaLQrKwt8cvKTlwHcdA6Hp8N9SO3Q5jIzo8x6kH3N47W0BvPP7NdxVBmIHx7X9DK36czYYW7lHg==","shasum":"b75936327dcbd3fa3af1f1098d5390245fbdd8b1","tarball":"http://registry-npm.ywwl.com/is-svg/download/is-svg-6.1.0.tgz","fileCount":5,"unpackedSize":3733,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICG/ajJ/E0NSo8b/RXVA+sWRUcmzf7018fUZ54jpFmWbAiAV+o8K0INwBEFb9FkhKsoak48CS++zLMIExDNyGr9D1Q=="}],"size":2001,"noattachment":false,"key":"/is-svg/-/is-svg-6.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com","actor":{"name":"sindresorhus","email":"sindresorhus@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-svg_6.1.0_1751975873377_0.9561768959411945"},"_hasShrinkwrap":false,"readme":"# is-svg\n\n> Check if a string is [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics)\n\n## Install\n\n```sh\nnpm install is-svg\n```\n\n## Usage\n\n```js\nimport isSvg from 'is-svg';\n\nisSvg('<svg xmlns=\"http://www.w3.org/2000/svg\"><path fill=\"#00CD9F\"/></svg>');\n//=> true\n```\n\n## API\n\n### isSvg(string, options?)\n\n#### options\n\nType: `object`\n\n##### validate\n\nType: `boolean`\\\nDefault: `true`\n\nWhether to validate the SVG as proper XML.\n\nTurning this off can improve performance significantly.\n","publish_time":1751975873576,"_cnpm_publish_time":1751975873576,"dist-tags":{"latest":"6.1.0"}}