0.1.1 • Published 6 years ago

willful v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

willful

A Fetch wrapper with retry strategies

Installation

npm install willful --save

Example

const willful = require('willful');

const reponse = await willful(url, {
    maxRetry: 3,
    retryDelay: 1000,
    retryStrategy: 'backoff'
});

Second parameter is optional. Default values are:

  • maxRetry: 3
  • retryDelay: 1000
  • retryStrategy: 'default'

The default retryStrategy retry the http call after retryDelay millisecond

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

9 years ago