megatron
v0.0.2
Published
Transforms origin obj to new object and validates types.
Downloads
4
Maintainers
Readme
Megatraon
A Transforming tool to map one object to another using a config file.
Steps to run:
- Download/clone the module and put into your node_modules folder
npm run install
- Go!
Example
var megatron = require('megatron')
var testData = {{your object to test}, 'path/to/your/defs'}
megtron(testData, function(err, res) {
if(err)
...do something with your err
else
...do something with success message and enjoy life
});