Skip to content

Commit e333578

Browse files
authored
fix formdata-node example (node-fetch#1068)
1 parent 1c30aec commit e333578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,11 @@ const data = await response.json();
370370
console.log(data)
371371
```
372372

373-
node-fetch also supports spec-compliant FormData implementations such as [formdata-node](https://github.com/octet-stream/form-data):
373+
node-fetch also supports spec-compliant FormData implementations such as [form-data](https://github.com/form-data/form-data) and [formdata-node](https://github.com/octet-stream/form-data):
374374

375375
```js
376376
const fetch = require('node-fetch');
377-
const FormData = require('form-data');
377+
const FormData = require('formdata-node');
378378

379379
const form = new FormData();
380380
form.set('greeting', 'Hello, world!');

0 commit comments

Comments
 (0)