Create MySQL database dumps programmatically from Node.js. Version 3.2.0 (stable) provides both file-based and in-memory dump outputs, with built-in TypeScript declarations. Supports dumping schema, data, and triggers separately. Notable differentiators: returns structured dump objects, supports compressed output (.gz), and offers SSL options including Amazon RDS. Typically receives minor updates; active maintenance.
npm install mysqldumpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a MySQL dump in memory, logging the schema and data separately.
Use await mysqldump() or mysqldump().then(result => ...)
Use in-memory dump and write to file separately with fs.writeFileSync
Convert callback(err, result) to await mysqldump()
Use import type { DumpReturn } from 'mysqldump';Run: npm install mysqldump
Change to: const result = await mysqldump(options);
Use: import mysqldump from 'mysqldump';