The best module ever.
Install
$ npm install --save etcl
Usage
Chrysalis is a framework designed to ease the process of data migration and manipulation. It is built off the concept of ETL (Extract, Transform, Load). In order to function, Chrysalis requires 3 modules:
- Extractor - [https://github.com/APPrise-Mobile/http-extractor]
- Transformer - [https://github.com/APPrise-Mobile/chryformer]
- Comparator - [https://github.com/APPrise-Mobile/array-comparator]
- Loader - [https://github.com/APPrise-Mobile/rest-loader]
var Chrysalis = ;var HTTPExtractor = ;var Chryformer = ;var RESTLoader = ; var extractor = ;var chryformer = ;var loader = ; var chrysalis = ;chrysalis; ;
API
-
chrysalis.setExtractor (extractor) - Provides chrysalis with an extractor (Required). The extractor is tasked with extracting the data from the source url.
-
chrysalis.setTransformer (transformer) - Provides chrysalis with a transformer (Required). The transformer is tasked with transforming the source data into the desired format.
-
chrysalis.setComparator (comparator) - Provides chrysalis with a comparator (Optional). The comparator is tasked with comparing the newly transformed data to existing data from an outside source, in order to determine if data must be updated or deleted.
-
chrysalis.setLoader (loader) - Provides chrysalis with a loader (Required). The loader is tasked with loading the data into its final destination.
-
chrysalis.run() - Run the process. Returns a promise that will resolve when the chrysalis is done.
License
MIT © APPrise-Mobile