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
remove-attr has 2,998 recorded weekly downloads on npm, a decrease of 49.2% over the past 30 days.
It ranks #1203 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -63.2%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
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.
Table of Contents
• Features • Installation • Usage • Prerequisites • Examples • License
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:
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.
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.
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.
License
Description from the npm listing.
- vite
- vite-plugin
- vue
- vuejs
- remove-attributes
- html
- build-tool
- javascript
- typescript
- optimization
- web-development
Where remove-attr sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm Vite plugins plugins
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 Oct 18, 2026. See the methodology.