</>PackageGraphPackageGraph

formdata-polyfill

npmv4.0.10

HTML5 `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.

1
Direct dependencies

Runtime packages this one declares itself.

2
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

60 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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 destinations
Example truncated — see the full README.

formdata-polyfill vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
formdata-polyfillthis page40.9M1MIT5 years ago
axios106.5M4MIT1 day ago
cross-fetch32.9M2MIT1 day ago
minipass-fetch02MIT1 day ago
isarray174.9M3MIT1 day ago
node-fetch172.9M9MIT1 day ago

Dependencies

Declared by formdata-polyfill v4.0.10. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

@types/google-closure-compiler ^0.0.19@types/node ^16.7.10google-closure-compiler ^20210808.0.0

Used by

Popular packages that depend on formdata-polyfill.

Relationship graph

Dependencies (left) and dependents (right) of formdata-polyfill.

fetch-blobnode-fetchformdata-polyfill
formdata-polyfill dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 21 days apart.

Recent versions of formdata-polyfill
VersionPublishedSizeLicense
4.0.10latest5 years ago31 KBMIT
4.0.95 years ago31 KBMIT
4.0.85 years ago31 KBMIT
4.0.75 years ago31 KBMIT
4.0.65 years ago29 KBMIT
4.0.55 years ago26 KBMIT
4.0.45 years ago29 KBMIT
4.0.35 years ago29 KBMIT
4.0.25 years ago29 KBMIT
4.0.15 years ago29 KBMIT
4.0.05 years ago30 KBMIT
3.0.206 years ago25 KBMIT
3.0.197 years ago23 KBMIT
3.0.187 years ago23 KBMIT
3.0.177 years ago22 KBMIT

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

Keywords

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.