A lightweight MySQL wrapper for Node.js providing simplified query execution and connection management. Current version 1.2.0 wraps the standard mysql package with async/await support and basic connection pooling. The API exposes a single default export for creating a connection pool and executing queries. This library has infrequent updates and minimal documentation; no recent changes or known issues. It differentiates by offering a very thin abstraction over mysql, but lacks TypeScript types and community adoption. Prefer more maintained alternatives like mysql2 or knex.
npm install klaru-mysql-wrapperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a connection pool, running a query, and closing the pool.
Update code to use async/await or .then().
Switch to async/await.
Always call pool.end() after queries.
Use default import: import KlaruMySQL from 'klaru-mysql-wrapper';
Run: npm install mysql