SuddenDevelopment / json-collection-decorator

efficiently run a collection of records by conditions and decorate them when conditions match, return results - filtered items
MIT License
0 stars 0 forks source link

Bulk of available transforms mechanism #4

Closed anderfjord closed 7 years ago

anderfjord commented 7 years ago

Issue: https://github.com/SuddenDevelopment/json-collection-decorator/issues/2

Allows for generating data type / option mappings, and retrieving these on an as-needed basis. Establishes a framework for specifying the operands and actions for base JavaScript data types, which can additionally be "extended" by more specific data types like ip, url, etc. There is also an "excludes" mechanism that allows the more specific data types to omit certain operands / actions of the base JavaScript data types from which they inherit.

Running the unit tests is the best way to observe the behavior: node_modules/mocha/bin/mocha -R spec ./test

(NOTE: the values in the _objGlobalDataTypeOptions and _objDataTypeOptionsTemplate variables should be reviewed and perhaps modified.)