https://github.com/kerlossony/nested-formdata
Nested-FormData is a Function designed to handle nested form data structures in a simplified and efficient way. It helps in managing complex form data, making it easier to work with forms that require hierarchical data
https://github.com/kerlossony/nested-formdata
data forms javascript nested-structures nextjs reactjs typescript
Last synced: 8 months ago
JSON representation
Nested-FormData is a Function designed to handle nested form data structures in a simplified and efficient way. It helps in managing complex form data, making it easier to work with forms that require hierarchical data
- Host: GitHub
- URL: https://github.com/kerlossony/nested-formdata
- Owner: KerlosSoNy
- Created: 2024-08-27T11:14:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-03T15:47:29.000Z (about 1 year ago)
- Last Synced: 2025-01-31T00:46:25.887Z (8 months ago)
- Topics: data, forms, javascript, nested-structures, nextjs, reactjs, typescript
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nested FormData
`Nested-FormData` is a Function designed to handle nested form data structures in a simplified and efficient way. It helps in managing complex form data, making it easier to work with forms that require hierarchical data.
## Features
- **Nested Form Data Handling**: Easily manage and manipulate nested form data.
- **Flat and Hierarchical Data Structures**: Convert between flat and nested data structures seamlessly.
- **Validation Support**: Integrate with validation libraries to ensure data integrity.
- **Customizable**: Tailor the library to meet specific needs of your form data structures.## Installation
You can Clone the function via:
```bash
git clone https://github.com/KerlosSoNy/Nested-FormData.git
```
## **Usage**Basic Usage
Here's a simple example
```bash
import { appendToFormData } from "./AppendFormData";const nestedData = {
user: {
name: 'John Doe',
address: {
street: '123 Main St',
city: 'Anytown',
},
},
};let formData = new FormData();
// Convert nested data to FormData
formData = appendToFormData(formData, nestedData);
```## Contributing
If you'd like to contribute to this project, please follow these steps:1. Fork the repository.
2. Create a new branch for your feature or bugfix.
3. Make your changes and commit them.
4. Push your branch and open a pull request.
## Acknowledgments
TypeScript , DataStructure