Skip to content
Mikael Carlsson edited this page Apr 14, 2017 · 5 revisions

To use lociDB in your NodeJS application you need to first Install it. Then you require it in your code and create an instance of it.

var lociDB = require("locidb");
var loci = new lociDB();

You can now access all the functions like this

loci.get("string");
loci.set("string", object);
etc.

If you don't change the source code in this module it will create a folder named lociDB in your application root folder and inside that folder all table files will be saved with the .db

Clone this wiki locally