Skip to content
JS
Package

is-svg

Check if a string is SVG

v6.1.0, 8 Jul 2025MITESM onlyTypes: Bundled
$ npm install is-svg

Key numbers

As of 25 Sept 2026
Weekly downloads
2.7m
+8% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
1 year ago
v6.1.0
GitHub stars
141
21 forks
Open issues / PRs
1 / 1
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.7m (25 Nov 2025)Low 890.6k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,697,620 downloads last week, 8,283,891 in the last month. The 12-month change of +8% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
026 in total
Latest version
6.1.0, 8 Jul 20251 year ago
First published
21 Apr 2014
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
1
Commits, last 52 weeks
1
Dependents on npm
243

Major versions

  1. v6 first release 6.0.0, 29 Apr 2025
  2. v5 first release 5.0.0, 28 Feb 2023
  3. v4 first release 4.0.0, 6 Mar 2019
  4. v3 first release 3.0.0, 2 Feb 2018
  5. v2 first release 2.0.0, 21 Apr 2016
  6. v1 first release 1.0.0, 14 Aug 2014
  7. v0 first release 0.1.0, 21 Apr 2014

Recent releases

VersionPublished
6.1.08 Jul 2025
6.0.029 Apr 2025
5.1.05 Aug 2024
5.0.114 May 2024
5.0.028 Feb 2023
4.4.028 Feb 2023
4.3.224 Nov 2021
4.3.116 Mar 2021
4.3.016 Mar 2021
4.2.211 Mar 2021
4.2.117 Jan 2020
4.2.030 May 2019
4.1.05 Apr 2019
4.0.06 Mar 2019
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=20
Runtimes
-
Unpacked size (npm)
3.6 kB
Dependencies (1)
@file-type/xml
npm install is-svg
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-svg@6.1.0/
  • unpkghttps://unpkg.com/is-svg@6.1.0/
  • esm.shhttps://esm.sh/is-svg@6.1.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.