{"repo":"MacFJA/svelte-persistent-store","free":true,"listed":false,"github":"https://github.com/MacFJA/svelte-persistent-store","clone":"git clone https://github.com/MacFJA/svelte-persistent-store.git","description":"A Svelte store that keep its value through pages and reloads","language":"TypeScript","stars":253,"topics":["svelte","sveltejs","store","localstorage","sessionstorage","cookie","indexeddb","storages"],"license":"MIT","category":"ecommerce","readme_excerpt":"Svelte Persistent store A Svelte store that keep its value through pages and reloads Installation Usage Features - Multiple storages (Allow to have the best suited usage depending on your use case) - Work with any Svelte store - Work with classes, objects, primitive Storages There are 6 storages built-in: - createLocalStorage() , that use window.localStorage to save values - createSessionStorage() , that use window.sessionStorage to save values - createCookieStorage() , that use document.cookie to save values - createIndexedDBStorage() , that use window.indexedDB to save value - createChromeStorage() , that use chrome.storage to save values - createEncryptedStorage() , that wrap a storage to encrypt data (and key) You can add more storages, you just need to implement the interface StorageInterface Documentation Documentation and examples can be generated with npm run doc , next open docs/index.html with your favorite web browser. (Hint: If you don't want to generate the docs, a part of the example and documentation are available here) Types The persist function will return a new Store with type PersistentStore . The full signature of persist is: The persist function add a delete function on the store. More information about types can be found in the generated types/index.d.ts ( npm run prebuild ) or in the generated documentation ( npm run doc ). Backwards Compatibility Break 1.3.0 to 2.0.0 Data persisted in version 1.3.0 may not be deserializable with version 2. . If you hav","default_branch":null,"files":null,"tree":[],"storefront":"/r/MacFJA","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MacFJA/svelte-persistent-store/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}