Skip to content

Replace form-data with built-in FormData #197

@talentlessguy

Description

@talentlessguy

Since version 21 FormData is no longer experimental. Since Node 18 it's available as a global but will emit a warning.

One important quirk: JS FormData doesn't have a getBoundary method, and generated a boundary randomly every time. This might affect tests and certain niche cases

form-data

# Downloads Traffic Version Package PR Notes
1 278.77M 6235.42 GB ^4.0.4 axios
2 89.49M 2001.64 GB ~2.3.2 request deprecated
3 57.08M 1276.69 GB ^4.0.4 @types/node-fetch
4 55.15M 1233.64 GB ^4.0.4 superagent minimum node 14.18
5 32.23M 720.84 GB ^2.5.5 @types/request
6 27.32M 611.15 GB ~4.0.4 @cypress/request
7 26.87M 600.93 GB ^4.0.0 @types/superagent
8 12.19M 272.75 GB ^4.0.0 @slack/web-api
9 7.71M 172.37 GB ~4.0.0 @neoxr/wb
10 6.45M 144.25 GB * @types/form-data
11 6.06M 135.57 GB ^4.0.4 @datadog/datadog-ci
12 5.36M 119.91 GB ^2.2.0 then-request
13 5.31M 118.67 GB ^4.0.0 @azure/core-http
14 4.43M 99.05 GB ^4.0.0 saucelabs
15 3.69M 82.49 GB ^4.0.0 @kubernetes/client-node
16 3.47M 77.56 GB ^4.0.0 @datadog/datadog-api-client
17 3.29M 73.67 GB ^2.5.0 @azure/ms-rest-js
18 3.14M 70.25 GB ^4.0.4 jsforce
19 2.89M 64.56 GB ^4.0.1 firebase-tools
20 2.86M 64.08 GB ^4.0.4 @redocly/cli
21 2.76M 61.68 GB ^4.0.4 @salesforce/core
22 2.61M 58.45 GB 4.0.2 @appium/support
23 2.36M 52.85 GB ^4.0.0 electron-publish
24 2.18M 48.82 GB ^2.5.0 @types/got
25 1.91M 42.74 GB ^2.5.0 @hubspot/api-client
26 1.70M 38.04 GB ^4.0.4 ibm-cloud-sdk-core
27 1.55M 34.66 GB ^4.0.4 @jsforce/jsforce-node
28 1.37M 30.58 GB ^4.0.0 cohere-ai
29 1.29M 28.75 GB ^4.0.0 @vscode/vsce
30 1.17M 26.10 GB ^4.0.1 urllib
31 1.04M 23.16 GB ^4.0.4 eas-cli
32 1.00M 22.47 GB ^4.0.4 stream-chat minimum node 18
33 979.08k 21.90 GB ^4.0.4 @salesforce/plugin-data
34 950.69k 21.26 GB ^2.3.2 isomorphic-form-data
35 930.95k 20.82 GB ^4.0.0 autocannon
36 870.08k 19.46 GB ^3.0.0 @mapbox/mapbox-sdk
37 836.20k 18.70 GB 4.0.0 n8n-workflow
38 826.29k 18.48 GB ^3.0.0 gitlab deprecated
39 809.52k 18.11 GB ^4.0.0 sanity
40 793.08k 17.74 GB ^4.0.0 @salesforce/plugin-api
41 781.37k 17.48 GB ^4.0.0 intercom-client
42 781.04k 17.47 GB ^3.0.0 @bugsnag/source-maps
43 688.57k 15.40 GB ^4.0.4 pubnub
44 647.85k 14.49 GB ^2.3.3 mailgun-js
45 561.55k 12.56 GB ^4.0.0 @nosana/sdk
46 528.23k 11.82 GB ^2.1.2 slackup
47 512.05k 11.45 GB ^4.0.0 browserstack-node-sdk
48 510.64k 11.42 GB 4.0.0 @getzep/zep-js
49 486.32k 10.88 GB ^4.0.4 @okta/okta-sdk-nodejs
50 459.34k 10.27 GB ^3.0.0 deepl-node minimum node 12

isomorphic-form-data

# Downloads Traffic Version Package
1 302.06k 528.90 MB ^2.0.0 @twilio/conversations
2 184.33k 322.77 MB ^2.0.0 @backstage/plugin-api-docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions