Package
pg-sql2
Generate safe Postgres-compliant SQL with tagged template literals
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 85.8k
- +44% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- 5 months ago
- v5.0.1
- GitHub stars
- 12.9k
- 627 forks
- Open issues / PRs
- 148 / 24
- Contributors
- -
- Commits, last 52 weeks
- 2,033
Downloads
Last week 2026-09-15 to 2026-09-21
85,827 downloads last week, 408,033 in the last month. The 12-month change of +44% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 5.0.1, 15 Apr 20265 months ago
- First published
- -
- Last push to GitHub
- 22 Sept 20262 days before the snapshot
- Repository archived
- No
- Open issues
- 148
- Open pull requests
- 24
- Commits, last 52 weeks
- 2,033
- Dependents on npm
- 28
Major versions
-
Recent releases
-
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=22
- Runtimes
- -
- Unpacked size (npm)
- 98 kB
- Dependencies (2)
tslib@graphile/lru
npm install pg-sql2- jsDelivr
https://cdn.jsdelivr.net/npm/pg-sql2@5.0.1/ - unpkg
https://unpkg.com/pg-sql2@5.0.1/ - esm.sh
https://esm.sh/pg-sql2@5.0.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| pgsql-ast-parser | 768.5k | - | 7 months ago | CommonJS | - |
| embedded-postgres | 372.2k | - | 3 months ago | ESM only | - |
| @effect/sql-pglite | 38.1k | - | 1 month ago | ESM only | - |
| ts-postgres | 9.6k | - | 2 years ago | ESM + CommonJS | - |
Indexability: Indexed.