1.0.0-beta.7 • Published 1 year ago

zod-rest-fetch v1.0.0-beta.7

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Zod REST Fetch

This little tool is a simple REST client that can be used to fetch data from REST APIs, and allows you to validate both the request and the response, in a transparent way.

Installation

npm install zod-rest-fetch

Usage

import { ZodRestFetch } from "zod-rest-fetch";

const client = new ZodRestFetch("example").baseUrl("https://jsonplaceholder.typicode.com");

const response = await client.get({
	endpoint: "/posts",
	
});
}
1.0.0-beta.7

1 year ago

1.0.0-beta.6

1 year ago

1.0.0-beta.5

1 year ago

1.0.0-beta.4

1 year ago

1.0.0-beta.3

1 year ago

1.0.0-beta.2

1 year ago

1.0.0-beta.1

1 year ago

1.0.0-beta.0

1 year ago