diff --git a/README.md b/README.md index d62c9c64d..3f59dc1fe 100644 --- a/README.md +++ b/README.md @@ -627,7 +627,7 @@ results in an [opaque-redirect filtered response](https://fetch.spec.whatwg.org/ node-fetch gives you the typical [basic filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-basic) instead. ```js -const fetch = require('node-fetch'); +import fetch from 'node-fetch'; const response = await fetch('https://httpbin.org/status/301', { redirect: 'manual' });