Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import sqliteHello from 'sqlite-hello-linux-x64'
✗ const sqliteHello = require('sqlite-hello-linux-x64')
ESM-only; CommonJS require throws ERR_REQUIRE_ESM.
loadExtension
✓ import { loadExtension } from 'sqlite-hello-linux-x64'
✗ import loadExtension from 'sqlite-hello-linux-x64'
Named export for loading the extension.
TypeScript types
✓ import type { SqliteHello } from 'sqlite-hello-linux-x64'
✗ import { SqliteHello } from 'sqlite-hello-linux-x64' (if type only)
Use import type for type-only imports to avoid bundler issues.
Shows how to import the native binary package and hint at loading with sqlite-dist to use the hello SQL function.
import sqliteHello from 'sqlite-hello-linux-x64';
import sqliteDist from 'sqlite-dist'?;
// Assuming sqliteDist is used to load the extension
// sqliteDist.loadExtension(sqliteHello);
// Then use hello() function in SQL: SELECT hello('world');
// The extension provides 'hello' SQL function.
// Ensure running on linux x64 and Node.js >=14.
// For full example, see sqlite-dist documentation.
Debug
Known issues
deprecatedPackage is pre-release (alpha) and may have breaking changes without notice.fixPin to exact version and test upgrades.
affects: <1.0.0
gotchaPlatform-specific package; only works on linux x64. Incorrect platform will cause runtime error.fixUse conditional imports or package os-specific resolution patterns.
affects: all
breakingESM-only; require() not supported. Will throw ERR_REQUIRE_ESM.fixUse import syntax or dynamic import().
affects: >=0.1.0-alpha.79
gotchaBinary must be loaded via sqlite-dist; direct loading not supported.fixUse sqlite-dist's loadExtension or similar.
affects: all
deprecatedTypeScript types are shipped but may be incomplete or evolve with alpha releases.fixCheck types after each update; consider generating types locally.
affects: >=0.1.0-alpha.79
Errors
Common errors & fixes
ERR_REQUIRE_ESM
Using require() on an ESM-only package.
fixUse dynamic import: const mod = await import('sqlite-hello-linux-x64'); MODULE_NOT_FOUND
Package not installed or wrong platform.
fixEnsure you are on linux x64 and have installed the package.
Error: The module '...' was compiled against a different Node.js version using NODE_MODULE_VERSION
Node.js version mismatch.
fixRecompile or use a compatible Node.js version (>=14 recommended).
Upgrade
Version history
0.1.0-alpha.79latest on npm
Audit
Dependencies
No dependency data recorded yet.