0.1.1 • Published 7 years ago

willful v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 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

7 years ago

0.1.0

7 years ago

0.0.1

10 years ago