# form-data-to-object **Repository Path**: mirrors_fis-components/form-data-to-object ## Basic Information - **Project Name**: form-data-to-object - **Description**: Fork from https://github.com/christianalfoni/form-data-to-object.git - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-11-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # form-data-to-object Converts application/x-www-form-urlencoded data structure to plain JS object ## API - `formData.toObj()` - Converts keys in x-www-form-urlencoded format on an object to a normal object - `formData.fromObj()` - Converts a normal object to object with keys in x-www-form-urlencoded format ```js // keys in x-www-form-urlencoded format { 'foo': 'bar', 'foo2[name]': 'bar2', 'foo3[0]': 'bar3', 'foo3[1][name]': 'bar4' } // converts from/to // normal object { foo: 'bar', foo2: { name: 'bar2' }, foo3: ['bar3', { name: 'bar4' }] } ```