A flexible migration tool for Node.js that works both from the CLI and programmatically. Current stable version is 0.0.8, with no recent releases or active development. It allows customization of state storage (via state managers) and migration templates. Compared to alternatives like `node-pg-migrate` or `db-migrate`, it is minimal and unopinionated, but lacks active maintenance and has limited community adoption. The package requires Node.js >= 4.3.2.
npm install migrate-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Programmatically run all pending migrations using the JSON state manager and default migration directory.
Consider alternatives like 'node-pg-migrate' or 'db-migrate'.
Always use 'npx migrate-js' for CLI commands.
Use const Migrate = require('migrate-js') and not destructuring.Explicitly install commander: npm install commander
Use const Migrate = require('migrate-js') (CommonJS) or import Migrate from 'migrate-js' (ESM).