Sift.js
Use Mongodb queries in JavaScript
Sift is a tiny library for using MongoDB queries in Javascript. Supported operators: $in, $nin, $exists, $gte, $gt, $lte, $lt, $eq, $ne, $mod, $all, $and, $or, $nor, $not, $size, $type, $regex, $where, $elemMatch. Creates a filter function without built-in MongoDB query operations. This is useful if you're looking to omit certain operations from application bundles. Regexp searches. Supports node.js, and web. Custom Operations. Tree-shaking (omitting functionality from web app bundles). Ability to use an array of expressions. All expressions must test true. Matches values based on the given regular expression. Sift works like MongoDB out of the box, but you're also able to modify the behavior to suite your needs.