get-bunch
get-bunch collects remote data from different sources and passes it into callback.
Installation
npm install get-bunch
Example
var getBunch = ; getBunch
Methods
get( obj )
Get data from one source.
param: {Object}
{
name: 'name1', // property name that will contain data
url: url1, // URL
type: 'plain' // optional, 'plain' will not be JSON parsed
}
getMulti( Array, callback )
Gets data from many sources (Array of objects described in get
) and passes it in one object into callback.