mongodb-security

JSON →
library 1.6.0 ·javascript maintenance
verified Jun 5, 2026

Portable business logic for the MongoDB security model, providing utilities to humanize MongoDB privilege resources and check user privileges against actions. Version 1.6.0 is the current stable release; the package is part of the MongoDB Compass ecosystem but has not seen updates since 2016. It offers functions like humanize() to convert resource objects to literate strings and getResourcesWithActions() to filter resources by allowed actions, simplifying MongoDB authorization checks.