Not Particularly Meaningful

    retry-with-logger
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    retry-with-logger

    npm i retry-with-logger

    See example/index.js to see a bit more useful usage.

    Quick Start (Basic Usage)

    import { retry } from 'retry-with-logger';
    
    try {
      const result = await retry(() => {
        throw new Error('boo');
      });
    } catch (error) {
      console.log('final error:', error);
    }

    This will try running the function once, then if it fails it will retry default of 5 times.

    Install

    npm i retry-with-logger

    DownloadsWeekly Downloads

    3

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    18.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • noitidart