mysql-as-promised is a lightweight wrapper around the popular mysql npm package that returns promises instead of using callbacks, enabling async/await syntax. Version 0.2.2 is the latest stable release; development appears to have stopped and the API is incomplete. It differentiates by avoiding external promise libraries (using native ES6 promises) and preserving the original mysql API shape, but only covers a subset of mysql operations.
npm install mysql-as-promisedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a connection pool, queries using async/await, and releases resources.
Consider using mysql2/promise or knex for production.
Check source or test coverage before adopting.
Use Node >= 4 or provide a polyfill.
npm install mysql
Use default import: import mysql from 'mysql-as-promised'