{"id":22382410,"url":"https://github.com/jcoreio/get-pg-config","last_synced_at":"2026-04-28T20:34:20.716Z","repository":{"id":240160392,"uuid":"801835523","full_name":"jcoreio/get-pg-config","owner":"jcoreio","description":"apply default postgres connection config from dotfiles and .pgpass","archived":false,"fork":false,"pushed_at":"2025-04-22T21:09:12.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-04T04:25:28.125Z","etag":null,"topics":["node-pg","node-postgres","pg","pgpass","postgres","postgresql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcoreio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-17T02:21:49.000Z","updated_at":"2025-04-22T21:08:44.000Z","dependencies_parsed_at":"2024-05-17T03:30:14.359Z","dependency_job_id":"a5155c41-2cf1-448b-aae2-46902517fc29","html_url":"https://github.com/jcoreio/get-pg-config","commit_stats":null,"previous_names":["jcoreio/get-pg-config"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jcoreio/get-pg-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fget-pg-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fget-pg-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fget-pg-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fget-pg-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcoreio","download_url":"https://codeload.github.com/jcoreio/get-pg-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fget-pg-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32398805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["node-pg","node-postgres","pg","pgpass","postgres","postgresql"],"created_at":"2024-12-05T00:12:54.406Z","updated_at":"2026-04-28T20:34:20.697Z","avatar_url":"https://github.com/jcoreio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jcoreio/get-pg-config\n\napply default postgres connection config from dotfiles and .pgpass\n\n[![CircleCI](https://circleci.com/gh/jcoreio/get-pg-config.svg?style=svg)](https://circleci.com/gh/jcoreio/get-pg-config)\n[![Coverage Status](https://codecov.io/gh/jcoreio/get-pg-config/branch/master/graph/badge.svg)](https://codecov.io/gh/jcoreio/get-pg-config)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![npm version](https://badge.fury.io/js/%40jcoreio%2Fget-pg-config.svg)](https://badge.fury.io/js/%40jcoreio%2Fget-pg-config)\n\nThis solves two minor problems with `pg`'s default connection parameters:\n\n- it doesn't read `~/.pgpass`/`PGPASSFILE`\n- `user` defaults to the OS user. In our work we always use Docker and the `postgres` user,\n  so we can configure that as the default with the following in `package.json` or `.get-pg-configrc` etc:\n  ```json\n  \"get-pg-config\": {\n    \"defaults\": {\n      \"user\": \"postgres\"\n    }\n  }\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fget-pg-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcoreio%2Fget-pg-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fget-pg-config/lists"}