0.1.4 • Published 9 years ago

chrysalis v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

NPM version Build Status Dependency Status

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:

var Chrysalis = require('chrysalis');
var HTTPExtractor = require('http-extractor');
var Chryformer = require('chryformer');
var RESTLoader = requrie('rest-loader');

var extractor = HTTPExtractor('http://somesourceurl.com');
var chryformer = Chryformer({sourceKey: 'destinationKey'});
var loader = RESTLoader('http://somedestinationurl.com');

var chrysalis = Chrysalis();
chrysalis.setExtractor(extractor);
  .setTransformer(chryformer)
  .setLoader(loader)
  .run();

#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

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago