This project adds a NativeScript FileSystem driver to localForage https://docs.nativescript.org/ns-framework-modules/file-system
Clone this repo to somewhere and import the src
folder for example:
import * as localforage from 'localforage';
import tnsFilesystemDriver from "../../../custom_builds/localforage-tns-filesystem-driver/src"
localforage.defineDriver(tnsFilesystemDriver).then(() =>{
console.log('defineDriver done');
localforage.setDriver('tns-filesystem').then(() =>{
console.log('setDriver done too......');
}).catch(e=>console.log('Error with setDriver()',e))
});