{"library":"decode-formdata","type":"library","category":null,"description":"`decode-formdata` is a JavaScript and TypeScript library designed to convert a flat `FormData` object back into a complex, nested JavaScript object. This process addresses the inherent data loss when `FormData` serializes all values to strings or `File` objects, and flattens nested structures. The library, currently at version 0.9.0, is actively maintained with recent updates focusing on bug fixes, security enhancements, and improved parsing capabilities like array bracket notation. It does not follow a strict release cadence but receives updates as needed. Its primary utility lies in reconstructing type information (booleans, numbers, dates) and object/array hierarchies from form field names using dot and bracket notation. This makes it particularly valuable for server-side processing in full-stack frameworks (e.g., Next.js, Remix, SvelteKit) where `FormData` is common for progressively enhanced forms, allowing developers to easily validate and type the re-hydrated data with schema libraries like Zod or Valibot.","language":"javascript","status":"active","version":"0.9.0","tags":["javascript","form","data","formdata","decode","convert","transform","multipart","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install decode-formdata","imports":["import { decode } from 'decode-formdata';","import type { FormDataEntry } from 'decode-formdata';","import type { FormDataInfo } from 'decode-formdata';"]},{"cmd":"yarn add decode-formdata","imports":[]},{"cmd":"pnpm add decode-formdata","imports":[]}],"homepage":null,"github":"https://github.com/fabian-hiller/decode-formdata","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/decode-formdata","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/decode-formdata/compatibility"}}