# postgresql-dist

> Use [postgresql](http://postgresql.org) as an npm module for tighter integration with node apps (e.g. test fixtures).

Latest version **15.6.0-8** (published 2024-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install postgresql-dist
pnpm add postgresql-dist
yarn add postgresql-dist
bun add postgresql-dist
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 15.6.0-8 |
| Published | 2024-04-13 |
| First published | 2023-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | svanterichter |

## Links

- npm: https://www.npmjs.com/package/postgresql-dist
- Repository: https://github.com/webivy-team/postgresql-dist
- Homepage: https://github.com/webivy-team/postgresql-dist#readme
- Issues: https://github.com/webivy-team/postgresql-dist/issues
- npm.io page: https://npm.io/package/postgresql-dist

## Dependencies (6)

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) ^2.0.1
- [postgresql-dist-linux-x64](https://npm.io/package/postgresql-dist-linux-x64.md) v15.6.0-8
- [postgresql-dist-win32-x64](https://npm.io/package/postgresql-dist-win32-x64.md) v15.6.0-8
- [postgresql-dist-darwin-x64](https://npm.io/package/postgresql-dist-darwin-x64.md) v15.6.0-8
- [postgresql-dist-linux-arm64](https://npm.io/package/postgresql-dist-linux-arm64.md) v15.6.0-8
- [postgresql-dist-darwin-arm64](https://npm.io/package/postgresql-dist-darwin-arm64.md) v15.6.0-8

## Recent versions

- 15.6.0-8 (latest) — 2024-04-13
- 15.6.0-7 — 2024-03-13
- 15.6.0-5 — 2024-02-23
- 15.4.0-5 — 2023-11-23
- 15.4.0-4 — 2023-10-17
- 15.4.0-3 — 2023-10-17
- 15.4.0-2 — 2023-10-15
- 15.4.0-1 — 2023-10-14

## README

# postgresql-dist

Use [postgresql](http://postgresql.org) as an npm module for tighter integration with node apps (e.g. test fixtures).

## Usage

`npm install postgresql-dist`

```javascript
import postgresql from 'postgresql-dist'
import pg from 'pg'

const postgresqlServer = await postgresql()
const client = new pg.Client({
  host: postgresqlServer.socketDir,
  database: 'postgres',
})
await client.connect()
console.log((await client.query('SELECT NOW()')).rows)
await client.end()
await postgresqlServer.stop()
```

---
_Source: https://npm.io/package/postgresql-dist · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
