mysql-promise is a small wrapper version 5.0.0 for the mysql and mysql2 Node.js drivers that returns promises instead of callbacks. It provides a simple API with query, configure, and support for multiple database connections. Unlike alternatives like mysql2/promise, it wraps the legacy mysql package and allows using any promise implementation. Release cadence is low; last release was 2019.
npm install mysql-promiseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a connection, run a query with promise, and handle results.
Consider migrating to mysql2/promise which has native promise support.
If not using Bluebird, use .then() with destructuring or handle rows differently.
Either use Bluebird globally or replace .spread() with .then(([rows]) => ...).
Run: npm install mysql or npm install mysql2
Correct: const db = require('mysql-promise')();Run: npm install mysql