A low level, database agnostic migration client for Node.js. Version 1.1.5 is current. It makes no assumptions about migration structure or storage, requiring users to define custom handlers for executing migrations, tracking state, and logging. The CLI was extracted to a separate termigrator-cli package as of v1.0.0. Compared to alternatives like db-migrate or knex migrations, Termigrator offers maximum flexibility but requires more manual setup.
npm install termigratorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Migrator instance with custom handlers and runs pending migrations.
Install termigrator-cli separately and import Cli from there.
Ensure each handler returns a Promise.
Define all four required functions.
Ensure getMigrations returns ids in execution order (e.g., sorted).
Create instance: const migrator = new Migrator({...}); then call migrator.up().Run: npm install termigrator
Provide a function for execMigration that returns a Promise.
No dependency data recorded yet.