{"library":"pg-anonymizer","title":"pg-anonymizer","description":"pg-anonymizer is a CLI tool (built with oclif) that exports a PostgreSQL database and anonymizes sensitive columns using faker.js. It wraps pg_dump and replaces data on the fly. Current stable version 0.8.1, released Feb 2024, with ~5 releases per year. Key differentiators: no database installation, works as a pipe, supports custom faker functions, extension files, and config files. Alternative to pg_dump with custom scripts or postgresql_anonymizer, but simpler and portable.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install pg-anonymizer"],"cli":{"name":"pg-anonymizer","version":null}},"imports":["import pgAnonymizer from 'pg-anonymizer'","import { anonymize } from 'pg-anonymizer'","import type { Config } from 'pg-anonymizer'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npx pg-anonymizer postgres://user:pass@localhost:5432/mydb --columns=email,firstName,lastName --output dump.sql","lang":"typescript","description":"Anonymize a PostgreSQL database export by specifying columns to anonymize, using npx without installation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}