dipswitch-postgres v1.0.0 provides a PostgreSQL-backed store for the dipswitch feature toggle library. It integrates with dipswitch to persist and retrieve toggle states in a PostgreSQL database. The package is stable but minimal, designed specifically for dipswitch and requiring a PostgreSQL connection string. Compared to other stores (e.g., in-memory or Redis), dipswitch-postgres offers persistent storage for production use. Release cadence is low; no recent updates.
npm install dipswitch-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a PostgreSQL-backed dipswitch store and check a feature toggle.
Pass a valid PostgreSQL connection string (string type) to the default export function.
Ensure PostgreSQL database and required tables are created before using the store.
Create a declaration file: declare module 'dipswitch-postgres';
Verify PostgreSQL is started and connection string is correct.
Create the necessary tables as per dipswitch documentation.