@maxtan/fetch
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

基于ofetch的fetch工具

安装

npm install @maxtan/fetch

或者使用 pnpm

pnpm add @maxtan/fetch

引用

import { Http } from "@maxtan/fetch"
const http = new Http().create();
http.get('https://baidu.com').then(res => {
    console.log(res);
});
http.post('https://baidu.com').then(res => {
    console.log(res);
});

/@maxtan/fetch/

    Package Sidebar

    Install

    npm i @maxtan/fetch

    Weekly Downloads

    0

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    6.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • maxtan