From 8ced5b941cf36d0d7e0c1017aa2a4abcb29ecd89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Miky=20Jankovsk=C3=BD?= Date: Wed, 1 Feb 2023 05:26:05 +0100 Subject: [PATCH] docs: readme - non ESM example (#1707) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d62c9c6..3f59dc1 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' });