Skip to content

Commit

Permalink
Update ESM/CJS support section in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Jun 12, 2022
1 parent 5f620b4 commit 50586bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 50586bd

Please sign in to comment.