Package
mongoose-unique-validator
mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 36.9k
- +37% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 6 months ago
- v6.1.1
- GitHub stars
- 543
- 76 forks
- Open issues / PRs
- 0 / 2
- Contributors
- -
- Commits, last 52 weeks
- 41
Downloads
Last week 2026-09-15 to 2026-09-21
36,897 downloads last week, 183,351 in the last month. The 12-month change of +37% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 6.1.1, 24 Mar 20266 months ago
- First published
- -
- Last push to GitHub
- 28 Jul 202659 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 2
- Commits, last 52 weeks
- 41
- Dependents on npm
- 192
Major versions
-
Recent releases
-
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=22
- Runtimes
- -
- Unpacked size (npm)
- 21 kB
- Dependencies (0)
- None
- Peer dependencies (1)
mongoose
npm install mongoose-unique-validator- jsDelivr
https://cdn.jsdelivr.net/npm/mongoose-unique-validator@6.1.1/ - unpkg
https://unpkg.com/mongoose-unique-validator@6.1.1/ - esm.sh
https://esm.sh/mongoose-unique-validator@6.1.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| generate-schema | 105.3k | - | 8 years ago | CommonJS | - |
| @indexeddb-orm/idb-orm | 41.9k | - | 24 days ago | ESM + CommonJS | - |
| squid | 5.4k | - | 5 years ago | CommonJS | - |
Indexability: Indexed.