open-index/open-npm huggingface dataset:
npm package: @svelte-use/core
Description: Collection of essential Svelte Utilities
Author: 2nthony
Latest version: 0.11.0

# Svelte Use

> Fork from [@vueuse/vueuse](https://github.com/vueuse/vueuse)

## Install

```bash
npm i @svelte-use/core
```

## Usage

```html
<script>
  import { usePreferredDark, usePreferredDark } from '@svelte-use/core'

  // is user prefers dark theme
  const isDark = usePreferredDark()

  // persist state in localStorage
  const storage = useLocalStorage({
    'my-storage',
    {
      name: 'Apple',
      color: 'red'
    }
  })
</script>
```

Refer to [functions list](http://svelte-use.vercel.app/functions) or [documentations](http://svelte-use.vercel.app/) for more detauls.

## Thanks

This project is heavily inspired by the following awesome projects.

- [vueuse/vueuse](https://github.com/vueuse/vueuse)

## License

[MIT license](./LICENSE) © 2021-PRESENT [2nthony](https://github.com/evillt)
npm package: @svelte-use/store
Description: Enhancement for svelte/store
Author: 2nthony
Latest version: 0.8.1

# @svelte-use/store

This is an enhanced of [svelte/store](https://svelte.dev/docs#svelte_store).

## Install

```bash
npm i @svelte-use/store
```

## Functions

<!--GENERATED LIST, DO NOT MODIFY MANUALLY-->
<!--FUNCTIONS_LIST_STARTS-->
  - [`derived`](/store/derived/) — origin [derived](https://svelte.dev/docs#derived)
  - [`get`](/store/get/) — origin [get](https://svelte.dev/docs#get)
  - [`readable`](/store/readable/) — auto unsubscribe on destory for `readable`
  - [`writable`](/store/writable/) — auto unsubscribe on destory for `writable`


<!--FUNCTIONS_LIST_ENDS-->