npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sqlite3-offline-next

v5.0.3

Published

Bundled SQLite3 library for offline environments but with modern node support

Downloads

909

Readme

SQLite3 for offline environments - sqlite3-offline-next

BSD-3 licensed npm bundle size npm node-current

Bundled library for SQLite3 for offline deployments. Zero dependencies, zero external HTTP downloads.

Based on the awesome work of DenisCarriere and Howe Huang and just forked + published to by me.

After version upgrade to v5.0.0, Offical SQLite3 use Node-API to build native addons so that we can use one prebuild native library support across versions of Node.js. But Unfortunately, some old Node release and Electron version has been end of support.

Install 🛠

# Install as normal package
npm install --save sqlite3-offline-next
yarn sqlite3-offline-next

# Install as sqlite3 alias
npm install --save sqlite3@npm:sqlite3-offline-next
yarn add sqlite3@npm:sqlite3-offline-next

Quickstart 🚀

const sqlite3 = require('sqlite3-offline-next').verbose()
var db = new sqlite3.Database('./dev.db')

db.serialize(function() {
  db.run("CREATE TABLE lorem (info TEXT)")

  var stmt = db.prepare("INSERT INTO lorem VALUES (?)")
  for (var i = 0; i < 10; i++) {
    stmt.run("Ipsum " + i)
  }
  stmt.finalize()

  db.each("SELECT rowid AS id, info FROM lorem", function(err, row) {
    console.log(row.id + ": " + row.info)
  })
})

db.close()

Supported Platforms

  • Windows x64 & ia32
  • MacOSX x64
  • Linux x64

Untested

These plattforms should work but I haven't tested them yet...

  • Electron (Version below v5.0.0)
    • v1.5
    • v1.6
    • v1.7
    • v8.2
  • Electron (Version after v5.0.0)
    • v6.0
    • v6.1
    • v7.0
    • v6.1
    • v8.0
    • v8.1
    • v8.2

Supported NodeJS Releases

Tested (only for v5.0.0 and up)

  • Node.js v16
  • Node.js v15
  • Node.js v14

Untested

These releases should work but I haven't tested them yet...

Version v5.0.0 and up

  • Node.js v13
  • Node.js v12
  • Node.js v11

Versions below v5.0.0

  • Node.js v13
  • Node.js v12
  • Node.js v11
  • Node.js v10
  • Node.js v9
  • Node.js v8
  • Node.js v7
  • Node.js v6
  • Node.js v5
  • Node.js v4

License

BSD © Mapbox