# nitro-parter

> Nuxt Parter is a Middleware For Nuxtjs and nitro.js It Parses Body any type or data json, urlencoded and multipart/formData all are supported by this middleware

Latest version **1.0.6** (published 2023-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install nitro-parter
pnpm add nitro-parter
yarn add nitro-parter
bun add nitro-parter
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-12-22 |
| First published | 2023-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rana Zuhaib |
| Maintainers | zuhaibranaa |
| Keywords | Multer, Nuxt-Parter, Nitro-Parter, NuxtJS, middleware, nuxt_bodyparser, bodyparser |

## Links

- npm: https://www.npmjs.com/package/nitro-parter
- Repository: https://github.com/zuhaibranaa/nuxt-parter
- Homepage: https://github.com/zuhaibranaa/nuxt-parter#readme
- Issues: https://github.com/zuhaibranaa/nuxt-parter/issues
- npm.io page: https://npm.io/package/nitro-parter

## Dependencies (1)

- [h3](https://npm.io/package/h3.md) ^1.9.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2023-12-22
- 1.0.5 — 2023-12-22
- 1.0.4 — 2023-12-22

## README

# NuxtParter

NuxtParter is a utility class for handling HTTP events in a Nuxt.js application. It can parse both multipart form data and regular body data from HTTP requests. It also provides a static method for storing files.

## Installation

`npm install --save nitro-parter`

`import { NuxtParter } from 'nitro-parter';`

## Create a new instance of NuxtParter with the HTTP event you want to handle

`let {data, files} = await NuxtParter.readRequestData(event);`

## Access the parsed data and files from the `data` and `files` properties of the `NuxtParter` instance

`event.context.files = files;`

`event.context.data = data;`

## Use the static `storeFile` method to store a file to a specified path

`NuxtParter.storeFile(file, path);`

---
_Source: https://npm.io/package/nitro-parter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
