@storagestack/localstorage-provider
TypeScript icon, indicating that this package has built-in type declarations

0.8.0-alpha.2 • Public • Published

Localstorage provider

This is the implementation for the localstorage provider, so if you want to save files to localstorage you can do that with this package.

Provider

A provider is an abstract definition of a storage mechanism. Every provider can set, get and delete content.

You can register a provider on the application object of storagestack.

ss.registerProvider(new LocalStorageProvider());

Or when you want to use a pattern ...

ss.registerProvider(new LocalStorageProvider(), '*-index.json');

Take a look in the core library to the provider interface.

Package Sidebar

Install

npm i @storagestack/localstorage-provider

Weekly Downloads

1

Version

0.8.0-alpha.2

License

ISC

Unpacked Size

9.82 kB

Total Files

14

Last publish

Collaborators

  • jorishermans