A zero-config database migration tool for Node.js using PostgreSQL. Version 2.0.0 supports writing both up and down migrations in a single .sql file, CLI migration scaffolding, and customizable migration table names. It is lightweight, TypeScript-native, and relies on the pg library for database connectivity. Release cadence: low frequency, stable.
npm install migratorosaurusNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Run all pending migrations from the 'migrations' folder on a PostgreSQL database, logging results to console.
Use import syntax or set "type": "module" in package.json. For CommonJS, use dynamic import.
Switch to named import { migratorosaurus }.Ensure filenames start with a numeric index, e.g., 001-create-table.sql.
Install pg separately: npm install pg.
Use import { migratorosaurus } from 'migratorosaurus' or const { migratorosaurus } = require('migratorosaurus')Install pg: npm install pg
Verify directory option points to a folder with numbered migration .sql files