json-criteria

JSON →
library 2.6.0 ·javascript
verified Jun 5, 2026

A JavaScript library for evaluating MongoDB-style query criteria on JSON objects. Version 2.6.0 is the latest stable. It supports common MongoDB operators like $and, $or, $gt, $lt, $in, $regex, $elemMatch, etc. Useful for in-memory filtering and testing. The library is small, has no dependencies, and works in Node.js and modern browsers. Differentiator: a lightweight alternative to MongoDB query evaluation for non-database contexts.