npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

axios-miniprogram

v2.7.2

Published

基于 Promise 的 HTTP 请求库,适用于各大小程序平台。

Downloads

205

Readme

axios-miniprogram 是什么?

axios-miniprogram 是一款为小程序平台量身定制的轻量级请求库,支持跨平台使用,同时也支持多种导入方式,可用于原生小程序项目,也可用于第三方框架项目,用法上同 axios 类似。

特性

  • 支持 Typescript,健全的类型系统,智能的 IDE 提示。
  • 支持 动态地址。
  • 支持 校验状态码。
  • 支持 参数序列化。
  • 支持 上传/下载。
  • 支持 错误处理。
  • 支持 转换数据。
  • 支持 取消请求。
  • 支持 扩展实例。
  • 支持 中间件。
  • 支持 拦截器。
  • 支持 平台适配器。

目前内部支持的平台

关于在跨端框架中使用时的支持度

问:在 uni-app 或者 Taro 等等这类跨端框架中使用时,该请求库支持 h5,APP,vue3 等等吗?

答:该请求库只是对框架提供的请求 API 进行了封装,并没有使用什么黑魔法。理论上来讲,框架支持的平台,该库也必然支持。

有问题欢迎反馈,请尽量把问题提到 github issues 中,这样更容易被我注意到。

提问点这里

跨端框架示例

Taro

uni-app