Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conbo-cordova-nativestorage

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conbo-cordova-nativestorage

Persistent storage classes for hybrid ConboJS apps using cordova-plugin-nativestorage

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NativeStorage classes for hybrid apps using ConboJS

This library contains persistent storage classes for hybrid ConboJS apps using cordova-plugin-nativestorage, as an alternative to ConboJS's built-in LocalStorage related classes.

  • NativeHash is a direct replacement for LocalHash; and
  • NativeList is a direct replacement for LocalList

Any data currently saved to LocalStorage by a LocalHash or LocalList with the same name will automatically be migrated to NativeStorage on first use.

Installation

cordova plugin add cordova-plugin-nativestorage
npm i conbo-cordova-nativestorage

Usage

Use of the classes in this library is almost identical to ConboJS's built-in LocalStorage related classes, see https://conbo.mesmotronic.com/, although you should wait until the 'ready' event has fired (usually just a few milliseconds after Cordova's 'deviceready' event) before interacting with instances of classes in this library, for example:

let list = new NativeList({name:'myList'});
list.addEventListener('ready', () => console.log('Your native list is ready to go!'));

// or

let list = await NativeList.create({name:'myList'});

// or

NativeList.create({name:'myList'}).then(list =>
{
	this.list = list;
	console.log('Your native list is ready to go!'));
});

FAQs

Package last updated on 09 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc