Skip to content
Mikael Carlsson edited this page May 15, 2019 · 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.

const lociDB = require("locidb");
const 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 name of "tablename".db

Clone this wiki locally