0.7.0 • Published 12 months ago

@azury/fetch v0.7.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
12 months ago

fetch

Setup

Deno

import fetch from 'https://deno.land/x/fetch_client@v0.6.0/mod.ts'

Node.js

npm i @azury/fetch
import fetch from '@azury/fetch'

Usage

const client = new fetch()

// optionally, you can specify global headers and a base path
const client = new fetch({
  base: 'https://',
  headers: {
    authorization: 'bearer token'
  }
})

const { data, error, code, ... } = await client.get('example.com', { type: 'json' }) // fetches 'https://example.com' and parses the response body as json
0.7.0

12 months ago

0.3.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.6.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago