Socket
Socket
Sign inDemoInstall

axios-apicloud-adapter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-apicloud-adapter

axios 的 apicloud 适配器,以便于在 app 中使用原生网络请求库


Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

axios-apicloud-adapter

axios 的 apicloud 适配器,以便于在 app 中使用原生网络请求库

npm package npm downloads

安装

yarn add axios-apicloud-adapter

使用

// main.js
import axios from 'axios'
import apicloudAdapter from 'axios-apicloud-adapter'

axios.defaults.adapter = apicloudAdapter

特性

  • 通过 window.api 检测运行环境,自动切换适配器
  • 文件上传通过 Base64 编码文件后实现,需后端配合做相关处理

参考

相关

Keywords

FAQs

Package last updated on 21 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc