@fatcherjs/middleware-form-data
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-alpha-10 • Public • Published

@fatcherjs/middleware-form-data

npm package install size Size

Install

NPM

>$ npm install @fatcherjs/middleware-form-data

CDN

<script src="https://cdn.jsdelivr.net/npm/@fatcherjs/middleware-form-data/dist/index.min.js"></script>

Usage

import { fatcher } from 'fatcher';
import { formData } from '@fatcherjs/middleware-form-data';

fatcher('https://foo.bar', {
  middlewares: [formData()],
  headers: {
    'Content-Type': 'multipart/form-data',
  },
  method: 'POST',
  body: {
    foo: 'bar',
    test: 'a',
  },
});

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @fatcherjs/middleware-form-data

Weekly Downloads

3

Version

3.0.0-alpha-10

License

none

Unpacked Size

5.76 kB

Total Files

7

Last publish

Collaborators

  • fanhaoyuan