validatorjs-webpack-plugin weekly downloads statistics
By julianburr · npm · Webpack plugins
Webpack plugin for validator js, to remove all unneeded locale files.
validatorjs-webpack-plugin has 98 recorded weekly downloads on npm, a decrease of 51.2% over the past 30 days, ranking #2629 of 3,247 tracked listings.
About validatorjs-webpack-plugin
validatorjs-webpack-plugin
Usage
yarn add validatorjs-webpack-plugin --dev
#or
npm i validatorjs-webpack-plugin --dev
In your webpack config:
const ValidatorjsPlugin = require('validatorjs-webpack-plugin');
module.exports = {
plugins: [
// To remove all locales except for "en"
new ValidatorjsPlugin({ localesToKeep: ['en'] })
],
};
Why?
Because validatorjs comes with a bunch of locale files for translations in many languages. It's very likely you don't actually use all of those, and they take up most of the bundle size, which ends up bloating your bundles.
What does it do?
It removes all languages that you don't need from the bundle. It adds a simple rule for webpacks IgnorePlugin as describes in this issue posted on the validatorjs repo.
I mainly decided to move it into a package so I wouldn't need to copy/paste the rule into all the projects 😅
This was heavily inspired by the moment-locales-webpack-plugin, which does a similar thing for the moment js library.
Description from the npm listing.
- webpack-plugin
- validatorjs
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm Webpack plugins plugins
All 20 validatorjs-webpack-plugin alternativesData 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/validatorjs-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.