0.1.4 • Published 7 months ago

deno-fetchx v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

fetchx (fetch eXtended)

This is imported from https://github.com/ahuigo/deno-fetchx/tree/main/test

Install

npm install deno-fetchx

Usage

  import fetchx from deno-fetchx

  const res = await fetchx.
    setCredentials('omit').
    setMode('cors').
    post("https://httpbin.org/post", {
      params: {
        "name": "Alex",
      },
      // credentials: 'omit', // is ok
      mode: "cors",
    }).then((res: Response) => res.json());

Examples

https://github.com/ahuigo/js-fetchx/blob/main/src/demo/fetch-cors.test.ts

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

11 months ago

0.1.1

11 months ago