Skip to content
PluginStats

remove-attr weekly downloads statistics

By mustafadalga · npm · Vite plugins

A Vite plugin designed specifically for Vue.js projects that allows the removal of specified attributes in production builds. Useful for excluding attributes like 'data-testid' used in testing. Options include specific file extensions, attributes, ignored

View on npm Fresh · Dec 6, 2026

remove-attr has 10,769 recorded weekly downloads on npm, an increase of 6.1% over the past 30 days, ranking #1231 of 3,247 tracked listings.

Weekly downloads
10,769
Official API · Dec 5, 2026
7-day growth
-4.0%
-454 weekly downloads
30-day growth
+6.1%
+621 weekly downloads
90-day growth
+99.3%
+5.4K weekly downloads
Rank
#1231
▼ 34 in 7 days

About remove-attr

Vite Plugin - Remove Attributes

This Vite plugin is specifically designed for Vue.js projects. It allows the removal of specified attributes in production builds, supporting a variety of options like file extensions, attributes, ignored folders, and files.

<p align="center">

vue version vue version

</p>

Table of Contents

Features

  1. Removes specified attributes in production builds of Vue.js projects.
  2. Allows you to specify the file extensions to be considered.
  3. Can ignore certain folders or files based on configuration.
  4. Ensures clean production code by removing unnecessary attributes, like 'data-testid' used in testing.

Installation

You can install this plugin through npm:

npm install --save-dev remove-attr

Usage

Prerequisites

To use this plugin, you need to have a Vite project set up. Import and use the plugin in your vite.config.js or vite.config.ts file.

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import removeAttr from 'remove-attr'

export default defineConfig({
    plugins: [
        vue(),
        removeAttr({
            extensions: [ 'vue' ],
            attributes: [ 'data-testid' ]
        })
    ]
})

<br />

Examples

Example 1: Removing 'data-testid' attributes from '.vue' files

This configuration will remove 'data-testid' attributes from all '.vue' files in the production build.

export default defineConfig({
    plugins: [
        vue(),
        removeAttr({
            extensions: [ 'vue' ],
            attributes: [ 'data-testid' ]
        })
    ]
})
<br />
Example 2: Ignoring specific folders and files

This configuration will remove 'data-testid' and 'data-id' attributes from all '.vue', '.ts', and '.js' files, with the exception of those in the 'src/tests' and 'src/utilities' folders, as well as the 'Home.vue', 'src/components/Modal.vue', and 'src/layouts/LayoutAuth.vue' files.

export default defineConfig({
    plugins: [
        vue(),
        removeAttr({
            extensions: [ 'vue', "ts", "ts" ],
            attributes: [ 'data-testid', "data-id" ],
            ignoreFolders: [ 'src/tests', "src/utilities" ],
            ignoreFiles: [ 'Home.vue', 'src/components/Modal.vue', "src/layouts/LayoutAuth.vue" ]
        })
    ]
})
<br />

License

License

Description from the npm listing.

  • vite
  • vite-plugin
  • vue
  • vuejs
  • remove-attributes
  • html
  • build-tool
  • javascript
  • typescript
  • optimization
  • web-development

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

remove-attr weekly downloads on npm, last 90 days: 10,769 weekly downloads as of Dec 5, 2026, +99.3% over 90 days.remove-attrWeekly downloads on npm · Last 90 days10,769downloads / week+99.3% over 90 days02K4K6K8K10K12K14K16KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
remove-attr weekly downloads on npm, last 90 days: 10,769 weekly downloads as of Dec 5, 2026, +99.3% over 90 days.

7/30/90-day growth

remove-attr weekly downloads growth on npm: -4.0% over 7 days, +6.1% over 30 days, +99.3% over 90 days.remove-attrWeekly downloads growth on npm10,769downloads / week now7-day growth-454 weekly downloads-4.0%30-day growth+621 weekly downloads+6.1%90-day growth+5,366 weekly downloads+99.3%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
remove-attr weekly downloads growth on npm: -4.0% over 7 days, +6.1% over 30 days, +99.3% over 90 days.

Ranking history

remove-attr npm ranking history: currently #1231 (by weekly downloads).remove-attrnpm ranking · by weekly downloads · Last 90 days#1231current rank#1050#1100#1150#1200#1250Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
remove-attr npm ranking history: currently #1231 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 62, #11 (overall #1,231)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 11, #17 (overall #217)
Vite 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 (170)
Recent weekly downloads observations for remove-attr
Date (UTC)Weekly downloadsChange vs. previous
10,769+228
10,541+685
9,856-324
10,180-1
10,181-88
10,269-515
10,784-439
11,223-300
11,523-372
11,895+365
11,530+324
11,206-126
11,332+134
11,198—

Similar npm Vite plugins plugins

All 20 remove-attr 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/remove-attr. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.