</>PackageGraphPackageGraph

form-data

npmv4.0.6TypeScript

A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications.

Safe to adopt

Yes — form-data scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 89 days ago. 15 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 89 days ago. 15 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 18 transitive packages, about 529 KB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 6 maintainers, and a contained dependency surface.

  • 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 form-data to a project.

5
Direct dependencies

Runtime packages this one declares itself.

18
Total installed

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

529 KB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

Every license you inherit by installing form-data, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >= 6
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the form-data README.

javascriptFull README ↗
var FormData = require('form-data');
var fs = require('fs');

var form = new FormData();
form.append('my_field', 'my value');
form.append('my_buffer', new Buffer(10));
form.append('my_file', fs.createReadStream('/foo/bar.jpg'));

Dependencies

Declared by form-data v4.0.6. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (22)

@ljharb/eslint-config ^22.2.3auto-changelog ^2.6.0browserify ^13.3.0browserify-istanbul ^2.0.0coveralls ^3.1.1cross-spawn ^6.0.6eslint ^8.57.1fake ^0.2.2far ^0.0.7formidable ^1.2.6in-publish ^2.0.1is-node-modern ^1.0.0istanbul ^0.4.5js-randomness-predictor ^3.6.0obake ^0.1.2pkgfiles ^2.3.2pre-commit ^1.2.2puppeteer ^1.20.0request ~2.87.0rimraf ^2.7.1semver ^6.3.1tape ^5.10.1

Used by

Popular packages that depend on form-data.

Relationship graph

Dependencies (left) and dependents (right) of form-data.

Frequently installed together

Release history

12 releases in the last two years, typically about 1 day apart.

Recent versions of form-data
VersionPublishedSizeLicense
2.5.62 months ago79 KBMIT
3.0.52 months ago80 KBMIT
4.0.6latest2 months ago82 KBMIT
4.0.59 months ago79 KBMIT
2.5.51 year ago77 KBMIT
2.5.41 year ago88 KBMIT
3.0.41 year ago76 KBMIT
4.0.41 year ago74 KBMIT
4.0.31 year ago43 KBMIT
4.0.21 year ago31 KBMIT
3.0.31 year ago31 KBMIT
2.5.31 year ago30 KBMIT
4.0.11 year ago31 KBMIT
3.0.21 year ago30 KBMIT
2.5.21 year ago29 KBMIT

Overview

form-data is an npm package that a library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications. It has 7 known dependents in the graph. The latest version is 4.0.6, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (27 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use form-data?

Yes — form-data scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 89 days ago. 15 releases in the last 2 years.

How do I install form-data?

Run `npm install form-data` to add form-data to your npm project.

How many dependencies does form-data have?

form-data declares 27 direct dependencies and pulls in 18 packages in total once its runtime tree is resolved totalling about 529 KB on disk.

What license is form-data released under?

form-data is distributed under the MIT license.

How popular is form-data?

npm does not publish download counts. Within PackageGraph's crawl, 7 known packages depend on form-data.

Is form-data still maintained?

The most recent release of form-data (v4.0.6) was published 2 months ago.

Does form-data run install scripts?

No. form-data does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.