{"library":"pg-error-enum","type":"library","category":null,"description":"TypeScript Enum for Postgres Error Codes. Version 2.0.1 provides generated TypeScript enums mapping all PostgreSQL error codes to their SQLSTATE values, with zero runtime dependencies. Updated from the PostgreSQL errcodes.txt source. Supports ESM and CommonJS. Ideal for type-safe error handling in Node.js with the 'pg' library, eliminating magic strings.","language":"javascript","status":"active","version":"2.0.1","tags":["javascript"],"install":[{"cmd":"npm install pg-error-enum","imports":["import { PostgresError } from 'pg-error-enum'","const { PostgresError } = require('pg-error-enum')","import type { PostgresError } from 'pg-error-enum'"]},{"cmd":"yarn add pg-error-enum","imports":[]},{"cmd":"pnpm add pg-error-enum","imports":[]}],"homepage":"https://github.com/nihalgonsalves/pg-error-enum#readme","github":"https://github.com/nihalgonsalves/pg-error-enum","docs":null,"changelog":null,"pypi":null,"npm":"pg-error-enum","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Fri Jun 05","next_check":"Thu Sep 03","install_tag":null}}