http-extractor

0.1.8 • Public • Published

NPM version Build Status Dependency Status

Extractor module designed to extract data from a source.

Install

$ npm install http-extractor --save

Usage

The http-extractor is a module designed to work with the chrysalis framework - [https://github.com/APPrise-Mobile/chrysalis]. It is tasked with fetching data from a remote source.

var httpExtractor = require('http-extractor');
 
var extractor = httpExtractor('http://remote-source.com');
extractor.extract();

or

var httpExtractor = require('http-extractor');
 
var options = {
  url: 'http://remote-source.com',
  extractionPath: 'path.to.destination.object'
}
var extractor = httpExtractor(options);
extractor.extract();

if 'extractionPath' is set in the options, then the extractor will return a deep object GET on the path supplied.

API

  • extractor.extract() - Run the extraction process.

License

MIT © APPrise-Mobile

Readme

Keywords

Package Sidebar

Install

npm i http-extractor

Weekly Downloads

0

Version

0.1.8

License

MIT

Last publish

Collaborators

  • indicium
  • frankros