From 50586bd443ea8bc3a99225f7b23bc2b1578febe0 Mon Sep 17 00:00:00 2001 From: Nick K Date: Sun, 12 Jun 2022 04:25:30 +0300 Subject: [PATCH] Update ESM/CJS support section in readme. --- readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.md b/readme.md index 8c4547f..06c7723 100644 --- a/readme.md +++ b/readme.md @@ -38,6 +38,10 @@ Or pnpm pnpm add formdata-node ``` +## ESM/CJS support + +This package is native [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) and no longer provides CommonJS exports. Use `4.x` version if you still need to use this package with CommonJS, or use [dynamic `import()`](https://v8.dev/features/dynamic-import) syntax. + ## Usage 1. Let's take a look at minimal example with [got](https://github.com/sindresorhus/got):