Installation
Requirements
- Massaman is ESM-only. Your runtime or bundler must support ES modules.
- Node.js 26 or newer is required when running Massaman in Node.js.
Install
There are no peer dependencies. es-toolkit and ts-pattern are installed automatically.
Try it
Troubleshooting
TypeScript cannot resolve massaman
Use a modern module resolver in tsconfig.json:
Use "nodenext" instead when TypeScript should follow Node.js module resolution.
CommonJS cannot load massaman
Massaman does not ship a CommonJS build. Migrate the project to ESM or load Massaman with a dynamic import:
Node.js reports an unsupported engine
Upgrade to Node.js 26 or newer. That is the minimum version declared by the package.