function LokiNativescriptAdapter() {
      this.fs = require("file-system");
  }
LokiNativescriptAdapter
@author Stefano Falda <stefano.falda@gmail.com>

Lokijs adapter for nativescript framework (http://www.nativescript.org)

The db file is created in the app documents folder. 
How to use:
Just create a new loki db and your ready to go: 

let db = new loki('loki.json',{autosave:true});