Skip to content

CGOAT24/tiny-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny-fetch

Tiny-fetch is a wrapper for fetch with minimal size!

Usage

import { tinyFetch } from "@cgoat24/tiny-fetch/src/client"

const someData = await tinyFetch.get('/api/endpoint');

const result = await tinyFetch.post('/api/create', {
  name: 'tiny-fetch',
  awesome: true
});

await tinyFetch.delete(`/api/${id}`, {
  priority: 'high'
});