6.46.8 • Published 4 days ago

@gasket/fetch v6.46.8

Weekly downloads
33
License
MIT
Repository
github
Last release
4 days ago

@gasket/fetch

Gasket will utilize the Fetch API as our standard request library. This package serves as a proxy for fetch implementations with server-side support.

Installation

npm i @gasket/fetch

Usage

Example with promises

import fetch from '@gasket/fetch';

fetch('url/to/resource')
  .then(res => {
    if (res.ok) {
      // handle success
    } else {
      // handle error
    }
  });

Example with async/await

import fetch from '@gasket/fetch';

const getSomething = async () => {
  const res = await fetch('url/to/resource');
  if (res.ok) {
    // handle success
  } else {
    // handle error
  }
};

Reference

License

MIT

7.0.0-next.21

4 days ago

7.0.0-next.9

9 days ago

7.0.0-next.10

9 days ago

7.0.0-next.7

9 days ago

7.0.0-next.11

9 days ago

7.0.0-next.8

9 days ago

7.0.0-next.12

9 days ago

7.0.0-next.13

9 days ago

7.0.0-next.6

9 days ago

7.0.0-next.20

9 days ago

7.0.0-next.5

10 days ago

6.46.8

11 days ago

7.0.0-next.4

12 days ago

7.0.0-next.3

16 days ago

7.0.0-next.2

23 days ago

7.0.0-next.1

24 days ago

7.0.0-next.0

24 days ago

7.0.0-cli.7

2 months ago

7.0.0-cli.6

2 months ago

6.46.1-cli.0

2 months ago

7.0.0-cli.5

2 months ago

7.0.0-cli.4

2 months ago

7.0.0-cli.1

2 months ago

7.0.0-cli.0

2 months ago

7.0.0-cli.3

2 months ago

7.0.0-cli.2

2 months ago

7.0.0-canary.1

2 months ago

6.45.2

3 months ago

6.45.0

4 months ago

6.39.0

12 months ago

6.38.1

1 year ago

6.36.1

1 year ago

6.38.0

1 year ago

6.34.6

2 years ago

6.34.3

2 years ago

6.34.4

2 years ago

6.34.2

2 years ago

6.28.1

2 years ago

6.21.0

2 years ago

6.24.2

2 years ago

6.24.0

2 years ago

6.20.3

2 years ago

6.20.2

2 years ago

6.10.1

2 years ago

6.10.0

2 years ago

6.14.0

2 years ago

6.17.0

2 years ago

6.0.12

3 years ago

6.0.0

3 years ago

6.0.0-canary.13

3 years ago

6.0.0-canary.2

4 years ago

6.0.0-canary.0

4 years ago

5.6.0

4 years ago

5.0.2

4 years ago

5.0.0

4 years ago

5.0.0-canary.4

4 years ago

5.0.0-canary.3

4 years ago

5.0.0-canary.2

4 years ago

5.0.0-canary.1

4 years ago

5.0.0-canary.0

4 years ago