{"library":"easy-compare","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.0.11","tags":["javascript","mongodb","compare","json","comparator","function","operator","values"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install easy-compare","imports":["import easyCompare from 'easy-compare';","const { compare } = require('easy-compare');","import easy from 'easy-compare';\neasy.compare(5, { $gte: 2 });"]},{"cmd":"yarn add easy-compare","imports":[]},{"cmd":"pnpm add easy-compare","imports":[]}],"homepage":"https://github.com/torto/easy-compare#readme","github":"https://github.com/torto/easy-compare","docs":null,"changelog":null,"pypi":null,"npm":"easy-compare","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}