Skip to content
PluginStats

svg-preview-plugin weekly downloads statistics

By lishaobos · npm · Webpack plugins

说明:解决项目中 svg 文件过多,不好同意查看管理的问题(支持 vite 和 webpack)

View on npm Outdated · Oct 27, 2026

svg-preview-plugin has 55 recorded weekly downloads on npm, an increase of 175% over the past 30 days, ranking #2759 of 3,247 tracked listings.

Weekly downloads
55
Official API · Dec 5, 2026
7-day growth
+175%
+35 weekly downloads
30-day growth
+175%
+35 weekly downloads
90-day growth
+511%
+46 weekly downloads
Rank
#2759
▲ 55 in 7 days

About svg-preview-plugin

svg-preview-plugin

说明:解决项目中 svg 文件过多,不好同意查看管理的问题(支持 vite 和 webpack)

<img src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/8c452533b0e847f48c10872a465d1e19~tplv-k3u1fbpfcp-watermark.image">

功能:

  • 实时预览 svg,动态更新预览内容
  • 复制文件名
  • 复制文件路径
  • 删除文件

use

npm i -D svg-preview-plugin@latest

options

  • dirPath

    • Type: string | array
    • Desc: 预览路径
  • open

    • Type: boolean
    • Default: true
    • Desc: 自动打开预览窗口
  • port

    • Type: number
    • Default: 3000
    • Desc: 预览端口
  • deep

    • Type: boolean
    • Default: false
    • Desc: 是否递归显示 dirPath 里的 svg
  • formatName

    • Type: function
    • Desc: 自定义复制内容

example

// webpack
const { WebpackPlugin } = require('svg-preview-plugin')

module.exports = {
  plugins: [
    new WebpackPlugin({
      dirPath: path.resolve('src/assets/icons/svg'),
      port: 3000,
      deep: true,
      formatName({name, filePath}) {
        return `<MyIcon name="${name}" />`
      }
    })
  ]
}
// vite | rollup
import { VitePlugin } from 'svg-preview-plugin'

module.exports = {
  plugins: [
    VitePlugin({
      dirPath: path.resolve('src/assets/icons/svg'),
      port: 3000,
      deep: true,
      formatName({name, filePath}) {
        return `<MyIcon name="${name}" />`
      }
    })
  ]
}

Description from the npm listing.

  • vite
  • vite-plugin-svg-icons
  • svg
  • svg-sprite-loader
  • webpack
  • webpack-plugin
  • preview
  • svg-preview

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

svg-preview-plugin weekly downloads on npm, last 90 days: 55 weekly downloads as of Dec 5, 2026, +511% over 90 days.svg-preview-pluginWeekly downloads on npm · Last 90 days55downloads / week+511% over 90 days010203040506070Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
svg-preview-plugin weekly downloads on npm, last 90 days: 55 weekly downloads as of Dec 5, 2026, +511% over 90 days.

7/30/90-day growth

svg-preview-plugin weekly downloads growth on npm: +175% over 7 days, +175% over 30 days, +511% over 90 days.svg-preview-pluginWeekly downloads growth on npm55downloads / week now7-day growth+35 weekly downloads+175%30-day growth+35 weekly downloads+175%90-day growth+46 weekly downloads+511%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
svg-preview-plugin weekly downloads growth on npm: +175% over 7 days, +175% over 30 days, +511% over 90 days.

Ranking history

svg-preview-plugin npm ranking history: currently #2759 (by weekly downloads).svg-preview-pluginnpm ranking · by weekly downloads · Last 90 days#2759current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 21 observations · Updated Dec 5, 2026pluginstats.com
svg-preview-plugin npm ranking history: currently #2759 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 138, #19 (overall #2,759)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 12, #8 (overall #228)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for svg-preview-plugin
Date (UTC)Weekly downloadsChange vs. previous
55-1
56-2
58-3
61+46
150
15-3
18-2
20-1
21-17
38+4
34-2
360
36+2
34—

Similar npm Webpack plugins plugins

All 20 svg-preview-plugin alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/svg-preview-plugin. First seen Oct 16, 2026; last successful collection Oct 27, 2026. See the methodology.