node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

request-generator

request-generator

Create generator functions that yield chunks of data from API endpoints.

const requestGenerator = require('request-generator')
 
const gen = requestGenerator({
 request: 'google.com', 
 stream: 'item.*', 
 transform: (data) => {}, 
 done: (err, req) => {}
})
 

Install

npm i --save request-generator
 
yarn add request-generator

How to use

ToDo

  • throttling of requests / sec for weak APIs (those moves are weak babe)