A curated list of constants for MySQL error key strings (e.g., 'ER_DUP_ENTRY'). Current stable version 0.1.3, with infrequent releases. Provides both named exports and a default object with all keys for use in Node.js and browser environments. Differentiates from raw error code maps by offering TypeScript type definitions and a simple constant-based approach to avoid magic strings in error handling.
npm install mysql-error-keysNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the mek object and use a constant for error comparison, avoiding raw strings.
Pin dependency to exact version or monitor updates.
Verify keys against official MySQL documentation; contribute updates.
Use import { mek } from 'mysql-error-keys' instead of namespace import.Use import { mek } from 'mysql-error-keys' and then mek.ER_DUP_ENTRY.Use import { mek } from 'mysql-error-keys' instead.Install package with npm install mysql-error-keys and ensure bundler can resolve Node modules.
No dependency data recorded yet.