How to use the remotestoragejs.default function in remotestoragejs

To help you get started, we’ve selected a few remotestoragejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github launchlet / launchlet / os-app / _shared / LCHStorageClient / main.js View on Github external
import * as RemoteStoragePackage from 'remotestoragejs';
const RemoteStorage = RemoteStoragePackage.default || RemoteStoragePackage;

export const LCHStorageClientForModules = function (modules) {
	let remoteStorage = new RemoteStorage({
		modules: modules,
	});

	let outputData = {};

	outputData.remoteStorage = remoteStorage;

	modules.forEach(function (e) {
		remoteStorage.access.claim(e.name, 'rw');

		remoteStorage.caching.enable(`/${ e.name }/`);

		outputData[e.name] = remoteStorage[e.name];

remotestoragejs

JavaScript library for integrating remoteStorage

MIT
Latest version published 1 year ago

Package Health Score

70 / 100
Full package analysis

Popular remotestoragejs functions

Similar packages