0.0.6 • Published 11 months ago

svelte-runes-store v0.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

svelte-runes-store

GITHUB VERSION NPM VERSION NPM Downloads NPM License Twitter

svelte-runes-store is a svelte/sveltekit package to build (persistent) svelte stores using runes.

GIF EXAMPLE

VERSIONS

  • WORKS WITH SVELTE 5 ONLY.

FEATURES

  • USES THE SVELTE 5 RUNES.
  • PERSISTENT AND NON PERSISTENT STORES.
  • TYPESCRIPT SUPPORT.

DEMOS

INSTALLATION

npm install svelte-runes-store

EXAMPLES

To run the examples from /src/routes:

git clone https://github.com/joaquimnetocel/svelte-runes-store.git
cd svelte-runes-store
npm install
npm run dev

COMPONENT STRUCTURE

  • functionCreateStore: Function to create the store.
  • functionReadStore: Function to read the store.

PARAMETERS

  • PROPS OF functionCreateStore:
PARAMETERDESCRIPTIONTYPEREQUIREDDEFAULT
valueINITIAL VALUE OF THE STORE.GenericYES-
nameSTORE NAME.stringYES-
persistentPERSISTENT STORE (OR NOT).booleanNOfalse
storageSTORAGE TYPE.localStorage OR sessionStorageNOlocalStorage
  • PROPS OF functionReadStore:
PARAMETERDESCRIPTIONTYPEREQUIREDDEFAULT
nameSTORE NAME.stringYES-
0.0.5

11 months ago

0.0.6

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago