sqlite-to-json is a small Node.js library that dumps SQLite database tables to JSON files. At version 0.1.3, it provides a simple class with methods to list tables, save individual tables as JSON, and export the entire database as a single JSON object. It depends on the native sqlite3 driver, which requires compilation. The package has not seen recent updates (last release appears old) and may have limited maintenance.
npm install sqlite-to-jsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the exporter with a sqlite3 database instance, lists tables, saves a table to JSON, and exports the whole database.
Install build tools via your OS package manager or use prebuilt binaries via `npm install sqlite3 --build-from-source`.
Pass `{ client: new sqlite3.Database(path) }` exactly.Always provide a callback function to `tables`, `save`, and `all` methods.
Run `npm install sqlite3` in your project.
Use `const SqliteToJson = require('sqlite-to-json');` then `new SqliteToJson(opts)`.