New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zhike/axios-upload

Package Overview
Dependencies
Maintainers
7
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zhike/axios-upload

基于axios上传表单数据

1.0.2
Source
npm
Version published
Weekly downloads
1
-97.78%
Maintainers
7
Weekly downloads
 
Created
Source

axios-upload

node 中在 axios 基础上上传表单数据

npm npm GitHub forks GitHub stars

Installation

npm i axios-upload 

example

const axiosUpload = require('axios-upload');

// 这里直接将 stream 传入即可
const data = {
  name: 'test',
  filedata: fs.createReadStream('./test.png')
};

await axiosUpload({
  url: 'http://xxx.xxx/test',
  method: 'post',
  headers: {
    'cache-control': 'no-cache'
  },
  data: data
});

FAQs

Package last updated on 25 May 2018

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