Yet another mongoose migration tool, version 1.1.7. It provides a simple way to manage MongoDB schema migrations using Mongoose with async/await. Key features include zero runtime dependencies (only peer dependency mongoose >=4), TypeScript support via ts-node, configuration through CLI, environment variables, or config file, and support for up/down/list/create commands. Release cadence is low; the package is stable and in maintenance mode. Differentiators: minimalistic, no additional dependencies, and designed for async/await.
npm install mongoomigNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to programmatically run all pending migrations using the Migration class.
After creating a migration file, convert its syntax to ESM imports/exports if needed.
Use '--require ts-node/register' when using TypeScript.
Manage connections manually or ensure migrations run before app logic.
Explicitly set config path via --config or environment variable to avoid surprises.
Run 'npm install mongoose' in your project.
Check the API: use 'migration.connect()' as shown in the documentation.