danybeltran / cltp

Http client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLTP - Http client

CLTP is an HTTP client.

Overview

Usage:

import { Client } from 'cltp'

async function fetchData() {
  const { data, error } = await Client.get('/api/info')

  try {
    return data
  } catch err {
    return null
  }
}

About

Http client

License:MIT License


Languages

Language:TypeScript 94.9%Language:JavaScript 5.1%