{"library":"formdata-polyfill","type":"library","category":null,"description":"The `formdata-polyfill` package provides a robust, spec-compliant `FormData` implementation for both browser environments and Node.js. For browsers, it acts as a polyfill, conditionally replacing the native `FormData` implementation to ensure consistent behavior across older browsers, including patches for `XMLHttpRequest.prototype.send`, `fetch`, and `navigator.sendBeacon`. For Node.js, it offers a pure, modular, and spec-compatible `FormData` class, verified by Web Platform Tests (WPT), which integrates seamlessly with `node-fetch` and modern `fetch` implementations. The current stable version is 4.0.10, released in late 2021. While new feature development appears to have slowed since then, it remains a maintained solution for consistent `FormData` handling, particularly for environments where native support is lacking or inconsistent. A key differentiator is its `formDataToBlob` utility, adopted by projects like Deno and Undici, enabling efficient serialization of `FormData` into `Blob` objects for HTTP requests.","language":"javascript","status":"maintenance","version":"4.0.10","tags":["javascript","formdata","fetch","node-fetch","html5","browser","polyfill"],"last_verified":"Wed May 27","install":[{"cmd":"npm install formdata-polyfill","imports":["import { FormData } from 'formdata-polyfill/esm.min.js';","import { formDataToBlob } from 'formdata-polyfill/esm.min.js';","import 'formdata-polyfill';"]},{"cmd":"yarn add formdata-polyfill","imports":[]},{"cmd":"pnpm add formdata-polyfill","imports":[]}],"homepage":null,"github":"https://github.com/jimmywarting/FormData","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/formdata-polyfill","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/formdata-polyfill/compatibility"}}