npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-pg-core

v8.22.2

Published

MIT redistribution of node-postgres [email protected] core as a pure JavaScript single package (no pg-native in this release; see >=8.22.3 for optional local-build native)

Readme

node-pg-core

基于 brianc/node-postgres [email protected] 的 MIT 再分发 / 单包重打包。
非官方发布;本包源码不在 GitHub 公开。版权与许可见 LICENSE、NOTICE。

上游仅作版权溯源说明(不是本包源码地址):https://github.com/brianc/node-postgres

npm install node-pg-core

用法

const { Client, Pool, Cursor, QueryStream } = require('node-pg-core')
const Cursor = require('node-pg-core/cursor')
const QueryStream = require('node-pg-core/query-stream')

TypeScript

本包当前提供 JavaScript 运行时,不提供根包 TypeScript 类型声明。若项目需要完整 类型支持,请在应用侧维护适配声明;本包不会为了类型声明额外安装 @types/pg。

Native

本版本(8.22.2)为纯 JavaScript 发布,不包含 pg-native。

  • require('node-pg-core').native 恒为 null
  • 不提供 node-pg-core/native 导出,也不提供原生本地编译命令
  • NODE_PG_FORCE_NATIVE=1 会抛出 NODE_PG_NATIVE_UNSUPPORTED

如需可选本地编译 native(随包 binding 源码 + 系统 libpq),请安装 node-pg-core@>=8.22.3。

目录

node-pg-core/
  LICENSE / NOTICE
  index.js / index.mjs
  packages/
    pg/
    pg-pool/
    pg-protocol/
    pg-connection-string/
    pg-cursor/
    pg-query-stream/

二次发布说明

  • npm 元数据中不再将本包 repository / bugs / homepage 指向上游 GitHub
  • MIT 要求保留的版权与许可文件仍完整提供
  • 默认零自动安装依赖:无 dependencies / optionalDependencies / peerDependencies
  • 原 pg-types / pgpass 已内置在 vendor/
  • “零自动安装依赖”不等于零第三方代码;vendored 组件仍按 NOTICE 与各自 LICENSE 管理

打包

npm pack --dry-run