Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polarpop/azure-middleware-multipart

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polarpop/azure-middleware-multipart

Middleware plugin for handling multipart, and form data requests in azure

  • 0.0.4
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@polarpop/azure-middleware-multipart

Multipart plugin for handling form-data requests in @polarpop/azure-middleware

Installation

If you already have @polarpop/azure-middleware installed, then you do not need to install it.

npm install --save @polarpop/azure-middleware-multipart @polarpop/azure-middleware

# or with yarn

yarn add @polarpop/azure-middleware-multipart @polarpop/azure-middleware

Usage

import { HttpRequest } from '@azure/functions';
import multipart from '@polarpop/azure-middleware-multipart';
import azureMiddleware from '@polarpop/azure-middleware';

const app = azureMiddleware<HttpRequest>();

app.use(multipart());

app.use((context, req) => {
  if (context.fields) {
    context.res = {
      status: 200,
      body: {
        fields: JSON.stringify(context.fields),
      },
    };
  }

  context.done();
});

export default app.listen();

Keywords

FAQs

Package last updated on 28 Dec 2021

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