SQLite compiled to JavaScript via Emscripten, providing a pure-JS SQLite implementation that avoids native C bindings and node-gyp compilation. Current version 0.0.2, with no clear release cadence. This package is a fork or wrapper around sql.js, offering a callback-based API for opening databases and executing SQL. It is distinct from sql.js in its API style and is less commonly maintained. Suitable for environments where native modules cannot be compiled.
npm install node-sqlite-purejsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Opens a SQLite database, creates a table, inserts a row, and queries it using the callback-based API.
Consider using sql.js or better-sqlite3 instead.
Wrap callbacks in Promises if needed, or use a library that supports async/await.
Use a type declaration file or switch to a typed library.
Run 'npm install node-sqlite-purejs' in your project.
Use 'const Sql = require('node-sqlite-purejs');'.Pass a function as the last argument to open or exec.
No dependency data recorded yet.