endrcn / semi-sync

According to the limit you define sends semi-synchronous requests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Semi-Sync

NPM version

Semi-Sync allows you to semi-synchronous requests. There are two ways you can send links that you want to request. You can send links in the array or file.

Example Code

var semiSync = require("semi-sync");

semiSync.requestLinksFromArray(linksArray, requestLimitInSameTime, function(err, results){
	if(err) console.log(err);
	//...
});

semiSync.requestLinksFromFile(linksFilePath, requestLimitInSameTime, function(err, results){
	if(err) console.log(err);
	//...
});

There are two functions in semi-sync module.

Download

The source is available for download from GitHub. Alternatively you can install using npm:

npm install --save semi-sync

About

According to the limit you define sends semi-synchronous requests.


Languages

Language:JavaScript 100.0%