1.0.3 • Published 6 years ago

jsonsqlite v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

JSONSQLite

JSONSQLite lets you store JSON data in a SQLite database.

Getting Started

Installation

Using npm:

  npm install --save jsonsqlite

Loading in Node.js

  const jsql = require('jsonsqlite')

Example Script

  const jsql = require('../index.js')
  
  jsql.newJSON('{ "test": "hello" }')
  
  jsql.setJSON('{ "test": "hello" }')
  
  jsql.getJSON(function(err, data) {
      if (err) console.error(err)
      console.log(data.test)
  })

This script can be tested in test/maintest.js. It should return this:

  hi

Why JSONSQLite?

If you are good with JSON, but not with SQLite, this is for you!

Issues or Questions

If you have an issue or question about this module, make a new issue here.

Current Known Bugs

There are some currently known bugs, they are as followed:

  • No table jsondata on first run

They will be fixed alongside development.

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago