https://github.com/faebeee/smurf-fetch
https://github.com/faebeee/smurf-fetch
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/faebeee/smurf-fetch
- Owner: faebeee
- Created: 2017-10-04T21:37:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T22:25:45.000Z (over 8 years ago)
- Last Synced: 2025-02-23T10:34:32.260Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://faebeee.github.io/smurf-fetch/
- Size: 1.49 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
smurf-fetch
===
[](https://circleci.com/gh/faebeee/smurf-fetch)
Example Config
=
[default.json](config/default.json)
Usage
=
First create a new instance of `smurf-fetch`. If you want a custom configuration, create a new one based on the example config and pass it as `CONFIG`.
Smurf fetch required
let smurfFetch = new SmurfFetch(SETTINGS, CONFIG);
return smurfFetch.start(url, loaders)
Settings
==
smurf-fetch required some settings in order to work and use all given loaders. `webPageTestApiKey` is required when you want to use `webPageTest`module.
`chunkSize` defines how many loaders will be started in parallel. Depending on the machine this will require a lot of resources.
{
webPageTestApiKey: KEY,
chunkSize: 3
}
Config
==
[HARLoader](https://www.npmjs.com/package/capture-har)
===
- [requestOptions](https://www.npmjs.com/package/request#requestoptions-callback)
- harOptions
[WebPageTestLoader](https://www.npmjs.com/package/webpagetest)
===
API
==
start
===
getAvailableLoaders
===