Skip to content

Commit 8ced5b9

Browse files
docs: readme - non ESM example (#1707)
1 parent 71e376b commit 8ced5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ results in an [opaque-redirect filtered response](https://fetch.spec.whatwg.org/
627627
node-fetch gives you the typical [basic filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-basic) instead.
628628

629629
```js
630-
const fetch = require('node-fetch');
630+
import fetch from 'node-fetch';
631631

632632
const response = await fetch('https://httpbin.org/status/301', { redirect: 'manual' });
633633

0 commit comments

Comments
 (0)