{"id":22473115,"url":"https://github.com/bas080/form-data-extended","last_synced_at":"2025-03-27T16:26:09.671Z","repository":{"id":31550399,"uuid":"123527632","full_name":"bas080/form-data-extended","owner":"bas080","description":"Form data with nested object and array support","archived":false,"fork":false,"pushed_at":"2022-04-03T08:53:38.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T17:53:34.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/form-data-extended","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bas080.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-02T03:52:56.000Z","updated_at":"2022-08-15T22:55:20.000Z","dependencies_parsed_at":"2022-08-07T16:30:31.317Z","dependency_job_id":null,"html_url":"https://github.com/bas080/form-data-extended","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Fform-data-extended","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Fform-data-extended/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Fform-data-extended/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Fform-data-extended/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bas080","download_url":"https://codeload.github.com/bas080/form-data-extended/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245880958,"owners_count":20687642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-06T12:19:02.506Z","updated_at":"2025-03-27T16:26:09.649Z","avatar_url":"https://github.com/bas080.png","language":"JavaScript","readme":"# Form Data Extended\n\n[![Build Status](https://travis-ci.org/bas080/form-data-extended.svg?branch=master)](https://travis-ci.org/bas080/form-data-extended)\n[![Greenkeeper badge](https://badges.greenkeeper.io/bas080/form-data-extended.svg)](https://greenkeeper.io/)\n\nMakes FormData support nested objects and arrays.\n\nAs far as I know there are no hard specifications concerning nested multipart\nrequests.  This package tries to cater to the most common use cases.  Allowing\nconfiguration to support different standards could be part of future features.\n\n# Installation\n\n`npm install form-data-extended --save`\n\n# Usage\n\nForm data extended exports a single function that takes an object or array. It\nreturns a `FormData` instance that should be correctly structured.\n\n```javascript\nconst formData = require('form-data-extended')\n\nconst userFormData = formData({\n  name: \"John Doe\",\n  location: {\n    country: \"USA\",\n    city: \"New York\",\n  },\n  picture: file, // file instanceof File === true\n  nicknames: [\n    \"Johny\",\n    \"Joe\",\n    \"Jo\",\n  ]\n})\n\nuserFormData instanceof FormData // =\u003e true\n```\n\nThe FormData will have the following key value pairs. Notice that it supports\nfile instances too.\n\n```\nname = John Doe\nlocation[country] = USA\nlocation[city] = \"New York\"\npicture = \u003cfile\u003e\nnicknames[] = Johny\nnicknames[] = Joe\nnicknames[] = Jo\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbas080%2Fform-data-extended","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbas080%2Fform-data-extended","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbas080%2Fform-data-extended/lists"}