easy-compare
JSON →A lightweight JavaScript library (v0.0.11, stable, infrequent updates) for comparing values using MongoDB-style operators. It provides a simple `compare(value, operator)` function supporting comparison operators ($eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $size, $nsize, $regex, $nregex) and logical operators ($and, $or, $all, $not). Key differentiator: JSON-defined operator objects, making it suitable for rule engines or configurable validation. Minimal dependencies, tiny install size.
Traffic · last 30 days stale · no recent hits
total hits 10
actors 3 distinct systems
last hit 16d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada
Resources
packageeasy-compare ↗