mysql-error-codes

JSON →
library 0.1.3 ·javascript
verified Jun 5, 2026

Provides a comprehensive, typed mapping of MySQL server error codes to their symbolic names (e.g., ER_DUP_ENTRY) for Node.js and TypeScript projects. Current version 0.1.3 is stable but rarely updated; includes all standard MySQL error codes up to MySQL 8.0. Ships with TypeScript definitions, supports both ESM and CommonJS imports, and is dependency-free. Useful for handling MySQL errors without magic numbers.