1.2.5 • Published 10 months ago

@zero-dependency/fetcher v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@zero-dependency/fetcher

npm version npm bundle size (scoped) npm license

Installation

npm install @zero-dependency/fetcher
yarn add @zero-dependency/fetcher
pnpm add @zero-dependency/fetcher

Usage

import { Fetcher, fetcher } from '@zero-dependency/fetcher'

interface Post {
  id: number
  userId: number
  title: string
  body: string
}

const api = new Fetcher('https://jsonplaceholder.typicode.com')
const post = await api.get<Post>('/posts/1')
console.log(post) // { id: 1, postId: 1, ... }
1.2.5

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.0

1 year ago