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.)
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.)