
Product
Introducing Reachability for PHP
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.
formdata-node
Advanced tools
FormData implementation for Node.js. Built over Readable stream and async generators. Can be used to communicate between servers with multipart/form-data format.
FormData implementation for Node.js. Built over Readable stream and async generators. Can be used to communicate between servers with multipart/form-data format.
You can install this package from npm:
npm install --save formdata-node
Or with yarn:
yarn add formdata-node
constructor FormData([fields])Initialize new FormData instance
get boundary() -> {string}Returns a boundary string of the current FormData instance.
get stream() -> {stream.Readable}Returns an internal Readable stream.
set(name, value[, filename]) -> {void}Set a new value for an existing key inside FormData, or add the new field if it does not already exist.
append(name, value[, filename]) -> {void}Appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.
get(name) -> {string | Buffer | stream.Readable}Returns the first value associated with the given name. Buffer and Readable values will be returned as-is.
getAll(name) -> {string[] | Buffer[] | stream.Readable[]}Returns all the values associated with a given key from within a FormData object.
has(name) -> {boolean}Check if a field with the given name exists inside FormData.
delete(name) -> {void}Deletes a key and its value(s) from a FormData object.
forEach(callback[, ctx]) -> {void}Executes a given callback for each field of the FormData instance
keys() -> {iterator}Returns an iterator allowing to go through the FormData keys
values() -> {iterator}Returns an iterator allowing to go through the FormData values
entries() -> {iterator}Returns an iterator allowing to go through the FormData key/value pairs
[Symbol.iterator]() -> {iterator}An alias of FormData#entries
[Symbol.asyncIterator]() -> {asyncIterator}Returns an async iterator which allows to read the data from internal Readable stream using for-await syntax. Read the async iteration proposal for more info about async generator functions.
The 'form-data' package is similar to 'formdata-node' and is used to create readable 'multipart/form-data' streams. It can be used in the Node.js environment and is compatible with 'request' library. It differs in API and internal implementation but serves a similar purpose.
Busboy is a Node.js module for parsing incoming HTML form data. It's different from 'formdata-node' as it focuses on parsing form data rather than creating it, but it can handle multipart/form-data, which is commonly used for file uploads.
Multiparty is a Node.js module for parsing multipart/form-data requests, which is used for uploading files. Unlike 'formdata-node', which is for creating and encoding form data, 'multiparty' is designed for the server-side to parse incoming data.
FAQs
Spec-compliant FormData implementation for Node.js
The npm package formdata-node receives a total of 9,224,953 weekly downloads. As such, formdata-node popularity was classified as popular.
We found that formdata-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.