We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e376b commit 8ced5b9Copy full SHA for 8ced5b9
README.md
@@ -627,7 +627,7 @@ results in an [opaque-redirect filtered response](https://fetch.spec.whatwg.org/
627
node-fetch gives you the typical [basic filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-basic) instead.
628
629
```js
630
-const fetch = require('node-fetch');
+import fetch from 'node-fetch';
631
632
const response = await fetch('https://httpbin.org/status/301', { redirect: 'manual' });
633
0 commit comments