https://github.com/daniel-onyenwee/window-postgres-installer
A helper package to install Postgresql binaries on a window system
https://github.com/daniel-onyenwee/window-postgres-installer
database installer postgres postgresql sql
Last synced: about 2 months ago
JSON representation
A helper package to install Postgresql binaries on a window system
- Host: GitHub
- URL: https://github.com/daniel-onyenwee/window-postgres-installer
- Owner: daniel-onyenwee
- Created: 2024-03-16T22:23:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T01:38:41.000Z (over 2 years ago)
- Last Synced: 2025-03-11T23:29:37.580Z (over 1 year ago)
- Topics: database, installer, postgres, postgresql, sql
- Language: TypeScript
- Homepage:
- Size: 20.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# window-postgres-installer
A helper package to install Postgresql binaries on a window system.
## Usage
```bash
npm i window-postgres-installer
```
```ts
import {
installPostgres,
getPostgresBinaries,
isPostgresInstalled
} from 'window-postgres-installer'
async function main() {
await installPostgres()
}
/*
* use `getPostgresBinaries` to get the file path to the postgres binaries
* use `isPostgresInstalled` to check if the postgres binaries are installed
*/
main()
```
> **NOTE:** The binaries are installed in the ***AppData/Roaming/node-embedded-postgres*** directory
## Credits
This package will not be possible without [zonky's embedded-postgres-binaries](https://github.com/zonkyio/embedded-postgres).