# is-svg > Check if a string or buffer is [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics) ## Install ``` $ npm install is-svg ``` ## Usage ```js const isSvg = require('is-svg'); isSvg(''); //=> true ``` ---
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.