README
mongo-comparison-ops-description
This library will create a Mongo-style regex from a "description" (a tuple of an operator and a value). This is useful for building UIs on top of Mongo or Sift $regex
operators.
Also see https://github.com/mixmaxhq/mongo-regex-description for the text counterpart to the library.
Example:
var comparisonDescription = require('mongo-comparison-ops-description');
var regex = regExpDescription.create({
operator: 'equal to',
value: 1
});
// { $not: { $regex: '^my value