migration-files
JSON →Utilities for parsing SQL-based migration files with versioned up/down sections. Version 0.4.3 is stable, with infrequent releases. It provides functions like findMigrationFilenames, readMigrationFile, and parseMigrationFile to scan a directory for migration files of format `NNN-name.sql` and extract up/down SQL statements separated by `-- Up` / `-- Down` markers. Unlike heavier frameworks (e.g., knex, Sequelize migrations), this is a lightweight, file-oriented library focused solely on reading and parsing migration files, leaving execution to the user.
Resources
packagemigration-files ↗