Installation
ESMitter can be installed using your package manager of choice:
sh
npm install esm-itter
sh
yarn add esm-itter
sh
pnpm add esm-itter
Compatibility
ESMitter requires Node > v16 or a browser with EcmaScript modules (ESM) support.
Import
ESMitter uses named exports. You can import the base class like this:
typescript
import { ESMitter } from "esm-itter";