cltp
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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
  }
}

Package Sidebar

Install

npm i cltp

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

32.7 kB

Total Files

13

Last publish

Collaborators

  • danybeltran