Skip to content

Bitmads/localforage-tns-filesystem-driver

 
 

Repository files navigation

LocalForage NativeScript FileSystem driver

This project adds a NativeScript FileSystem driver to localForage https://docs.nativescript.org/ns-framework-modules/file-system

Usage

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))
      });

About

LocalForage storage driver for WebExtension storage APIs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 81.7%
  • JavaScript 18.3%