A simple PostgreSQL migration tool for CLI and library use. Current stable version is 0.2.7, with irregular releases. It supports up/down migrations, hooks, prehooks, and SQL transforms. Differentiators: minimal configuration, supports JavaScript migrations alongside SQL files, and works both as a CLI and a programmatic library. Peers depend on pg (>=7 <9). Ships TypeScript types.
npm install nomadicNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configuration and basic CLI usage for up/down migrations.
Ensure your migrations table is in the public schema, or set 'schema' option if available (current docs indicate public only).
Be aware that config file takes precedence over CLI flags; use environment variables for sensitive data.
Check changelog before upgrading; library API is still evolving.
Run `yarn add pg` or `npm install pg` in your project.
npm install pg (version >=7 <9)
Use `const { up } = require('nomadic');` or `import { up } from 'nomadic';`Ensure PostgreSQL server is running and connection parameters in nomadic.config.js are correct.
Run `yarn nomadic up` to create the migrations table; it should be created automatically.