@embedded-postgres/windows-x64

中文文档
18.6.0-beta.19发布于 2026/10/31MITES Module零依赖近 30 天下载 26.3万

A package containing the Postgres binaries for a particular architecture and operating system. See the embedded-postgres package.

原始使用文档
文档目录4 节
  1. 🐘 A Node package that spawns PostgresQL clusters programati…
  2. Installation
  3. Using just the binaries
  4. Credits and Licensing

Embedded Postgres

npm npm type definitions npm NPM GitHub Actions Workflow Status

🐘 A Node package that spawns PostgresQL clusters programatically.

This package contains the windows-x64 Postgres binaries for use with the embedded-postgres package. See embedded-postgres for a more developer-friendly way of spawning PostgresQL clusters.

Installation

embedded-postgres is available from NPM:

npm i embedded-postgres

Using just the binaries

If you just want to use the binaries, you can also just use this package directly. It exports the paths to the pg_ctl, initdb and postgres binaries for windows-x64.

npm i @embedded-postgres/windows-x64

Follow the documentation to discover how to interface with the binaries. Any implementation is going to look something like this:

import { pg_ctl, initdb, postgres } from '@embedded-postgres/windows-x64'
import { execSync, spawn } from 'child_process';

execSync(initdb);
spawn(postgres);

[!IMPORTANT]
A more friendly wrapper for using these binaries is provided as the embedded-postgres package. Please use it if you're confused by the binaries.

Credits and Licensing

Embedded Postgres was created by Lei Nelissen for BMD Studio. It is based on zonky's embedded-postgres-binaries. The binaries are made available under the Apache License 2.0, whereas the specific code in this package is made available under the MIT license.

BMD Studio

版本与发布记录

@embedded-postgres/windows-x64 共发布 180 个版本,首次发布于 2022/06/09;过去 12 个月发布了 38 个版本。

版本发布日期距今
18.6.0-beta.19latest2026/10/3113 天前
16.15.0-beta.192026/10/3113 天前
17.11.0-beta.192026/10/3113 天前
15.19.0-beta.192026/10/3113 天前
14.24.0-beta.192026/10/3113 天前
14.24.0-beta.182026/10/3113 天前

关于 @embedded-postgres/windows-x64 的常见问题

@embedded-postgres/windows-x64 是什么?

A package containing the Postgres binaries for a particular architecture and operating system. See the embedded-postgres package.

如何安装 @embedded-postgres/windows-x64?

在项目目录运行 npm install @embedded-postgres/windows-x64,或使用 pnpm add / yarn add / bun add。

@embedded-postgres/windows-x64 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/embedded-postgres__windows-x64 是否存在。

@embedded-postgres/windows-x64 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@embedded-postgres/windows-x64 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=16。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@embedded-postgres/windows-x64 可以商用吗?

@embedded-postgres/windows-x64 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@embedded-postgres/windows-x64 的下载量有多少?

根据 npm 官方下载统计,@embedded-postgres/windows-x64 在 2026/10/14 – 2026/11/12 这 30 天内被下载 263,382 次,日均约 8,779 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@embedded-postgres/windows-x64 还在维护吗?

最新版本 18.6.0-beta.19 发布于 2026/10/31(13 天前);至今共发布 180 个版本,其中过去 12 个月发布了 38 个;首次发布于 2022/06/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。