Skip to content

About

为 uni-app 打造的基于 Promise 的 HTTP 客户端

Resources

Code of conduct

Contributing

Stars

129 stars

Watchers

1 watching

Forks

Repository files navigation

banner

@uni-helper/uni-network

logo

License GitHub Stars NPM version npm downloads Netlify

Author & Maintainer

为 uni-app 打造的基于 Promise 的 HTTP 客户端。要求 node>=18。

在线文档:uni-network.netlify.app · uni-network.pages.dev · uni-helper.js.org/uni-network

不想看文档?直接问 AI 🤖 Ask DeepWiki

请考虑持续赞助以维持该项目的持续健康发展,非常感谢!🙏

安装

npm install @uni-helper/uni-network

也可以使用 yarn add @uni-helper/uni-network 或 pnpm add @uni-helper/uni-network,各包管理器的注意事项见在线文档。

使用

import { un } from "@uni-helper/uni-network";

un.get("/user?ID=12345").then((response) => {
  console.log(response);
});

完整的安装说明、API 参考、拦截器、取消请求、TypeScript 支持和组合式函数文档,请阅读在线文档或 packages/core/README.md。

感谢

灵感与大部分代码源于 axios,完整致谢列表见包 README。

关联项目

包

包名 说明
@uni-helper/uni-network 为 uni-app 打造的基于 Promise 的 HTTP 客户端

参与贡献

欢迎提交 PR!请先阅读贡献指南。

许可证

MIT

About

为 uni-app 打造的基于 Promise 的 HTTP 客户端

Resources

Code of conduct

Contributing

Stars

129 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages