formdata-polyfill
npmv4.0.10HTML5 `FormData` for Browsers and Node.
Not recommended for new projects
No — formdata-polyfill should not be adopted for new projects. Last published 1805 days ago.
- AAdoption: grade A, Excellent.
40.9M downloads per week and 1 known dependents.
- FMaintenance: grade F, Failing.
Last published 1805 days ago.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 60 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding formdata-polyfill to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing formdata-polyfill, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=12.20.0
- Module format
- ESM only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the formdata-polyfill README.
// Node example
import fetch from 'node-fetch'
import File from 'fetch-blob/file.js'
import { fileFromSync } from 'fetch-blob/from.js'
import { FormData } from 'formdata-polyfill/esm.min.js'
const file = fileFromSync('./README.md')
const fd = new FormData()
fd.append('file-upload', new File(['abc'], 'hello-world.txt'))
fd.append('file-upload', file)
// it's also possible to append file/blob look-a-like items
// if you have streams coming from other destinationsformdata-polyfill vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| formdata-polyfillthis page | 40.9M | 1 | MIT | 5 years ago |
| axios | 106.5M | 4 | MIT | 1 day ago |
| cross-fetch | 32.9M | 2 | MIT | 1 day ago |
| minipass-fetch | 0 | 2 | MIT | 1 day ago |
| isarray | 174.9M | 3 | MIT | 1 day ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
Dependencies
Declared by formdata-polyfill v4.0.10. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (3)
Used by
Popular packages that depend on formdata-polyfill.
Relationship graph
Dependencies (left) and dependents (right) of formdata-polyfill.
Frequently installed together
Blob & File implementation in Node.js, originally from node-fetch.
A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications.
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
An implementation of WHATWG AbortController interface.
Create an ArrayBuffer instance from a Data URI string
Release history
No releases in the last two years, typically about 21 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.0.10latest | 5 years ago | 31 KB | MIT |
| 4.0.9 | 5 years ago | 31 KB | MIT |
| 4.0.8 | 5 years ago | 31 KB | MIT |
| 4.0.7 | 5 years ago | 31 KB | MIT |
| 4.0.6 | 5 years ago | 29 KB | MIT |
| 4.0.5 | 5 years ago | 26 KB | MIT |
| 4.0.4 | 5 years ago | 29 KB | MIT |
| 4.0.3 | 5 years ago | 29 KB | MIT |
| 4.0.2 | 5 years ago | 29 KB | MIT |
| 4.0.1 | 5 years ago | 29 KB | MIT |
| 4.0.0 | 5 years ago | 30 KB | MIT |
| 3.0.20 | 6 years ago | 25 KB | MIT |
| 3.0.19 | 7 years ago | 23 KB | MIT |
| 3.0.18 | 7 years ago | 23 KB | MIT |
| 3.0.17 | 7 years ago | 22 KB | MIT |
Overview
formdata-polyfill is an npm package that hTML5 `FormData` for Browsers and Node. It is extremely widely used, with about 40.9M downloads per week and 1 known dependents in the graph. The latest version is 4.0.10, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need hTML5 `FormData` for Browsers and Node and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (40.9M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use formdata-polyfill?
No — formdata-polyfill should not be adopted for new projects. Last published 1805 days ago.
How do I install formdata-polyfill?
Run `npm install formdata-polyfill` to add formdata-polyfill to your npm project.
How many dependencies does formdata-polyfill have?
formdata-polyfill declares 4 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 60 KB on disk.
What license is formdata-polyfill released under?
formdata-polyfill is distributed under the MIT license.
How popular is formdata-polyfill?
formdata-polyfill has approximately 40,858,653 downloads per week and 1 known dependent packages.
Is formdata-polyfill still maintained?
The most recent release of formdata-polyfill (v4.0.10) was published 5 years ago.
Does formdata-polyfill run install scripts?
No. formdata-polyfill does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.