0.1.1 • Published 9 months ago

tauri-axios-adapter v0.1.1

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

tauri-axios-adapter

A custom Axios adapter for Tauri v2, designed to seamlessly integrate HTTP requests within Tauri applications.

Installation

Install the package via npm or yarn:

npm install tauri-axios-adapter

or

yarn add tauri-axios-adapter

Usage

Here’s how you can use the tauri-axios-adapter in your Tauri project:

import axios from "axios";
import tauriAxiosAdapter from "tauri-axios-adapter";

const apiClient = axios.create({
  adapter: tauriAxiosAdapter,
});

// Example request
apiClient
  .get("http://localhost:8000/example-endpoint")
  .then((response) => console.log(response.data))
  .catch((error) => console.error(error));

License

MIT

0.1.1

9 months ago

0.1.0

10 months ago