mongoose-valid8

JSON →
library 1.7.1 ·javascript maintenance
verified Jun 7, 2026

A Mongoose plugin providing additional schema validations for common string formats (email, UUID, credit card, IP, MAC address, etc.). Current stable version is 1.7.1, released in 2021 and maintained intermittently. It works by importing the plugin once and then using validation flags directly in schema definitions (e.g., `email: true`). Compared to alternatives like `mongoose-validator`, this package offers a simpler declarative syntax without custom validator functions.