as-retryable-promise
Wraps a promise so that it can be retried
Usage
const asRetryablePromise = ;const fs = ;const fn = { fs;}; // Will retry if the file is lockedconst options = maxRetries: 5 timeout: 1000 errorcode === "EACCES";const retryable = ; retryable ; // Will return the error from the last attempt