Migration-renamer is a utility for renaming migration files, version 0.0.4. It is a small, focused tool designed to work with Postgrator-style migrations, providing a simple command-line interface for renaming migration files. It has minimal dependencies and is actively maintained. Differentiators include its simplicity and tight integration with the Postgrator migration tool.
npm install migration-renamerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Renames migration file from oldName to newName using default export, with directory option.
Use only one import style: either default or named.
Switch to ES modules (import syntax) or downgrade to 0.0.3.
Use 'dry-run' instead of 'dryRun'.
Always provide an explicit directory path.
Provide the complete old filename with extension.
Use import syntax (ES modules) in your project or downgrade to version 0.0.3.
Ensure you use either default import (no curly braces) or named import with correct name.
Verify that the directory path exists and the oldName file exists.