# modfix

> Automatically detect and configure the correct module system (ESM/CJS) to fix 'Cannot use import statement outside a module' and related errors

Latest version **1.0.2** (published 2026-04-08) · MIT license · 0 weekly downloads

_The full health report (score, vulnerabilities, README, dependency tree, version history) is being computed; this document will grow once it lands._

## Install

```sh
npm install modfix
pnpm add modfix
yarn add modfix
bun add modfix
```

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2026-04-08 |
| First published | 2025-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Dependencies | 0 |
| Maintainers | malicious-dev |
| Keywords | esm, commonjs, cjs, module, import, require, typescript, babel, nodejs, module-system, es-modules, fix, migrate, convert |

## Links

- npm: https://www.npmjs.com/package/modfix
- npm.io page: https://npm.io/package/modfix

---
_Source: https://npm.io/package/modfix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
