open-index/open-npm huggingface dataset:
npm package: @mwjz/asker
Description: ��<h1>   Asker </h1> <a href="https://npmjs.com/package/@mwjz/asker">   <img src="https://badgen.net/npm/v/@mwjz/asker/latest
Author: mowenjinzhao
Latest version: 0.0.5

��<h1>
  Asker
</h1>
<a href="https://npmjs.com/package/@mwjz/asker">
  <img src="https://badgen.net/npm/v/@mwjz/asker/latest" alt="npm package">
</a>

N*N{|<O Pinia O(ub__�v ServiceB\ ����


## Installation


```sh
npm install @mwjz/asker
```

## Usage

�[�OS
```js
import { PiniaStorage } from '@mwjz/asker'

// Pass the plugin to your application's pinia plugin
createAsker({});
```

O(u

```js
export const useService = defineService({
  hello(): Promise<string> {
    return this.$asker.get('xxx/xxx');
  }
});


const service = useService();
service.hello();

```
npm package: @mwjz/pinia-storage
Description: Persistence state in your pinia 🍍 store!
Author: mowenjinzhao
Latest version: 0.0.3

<h1>
  <img height="64" src="https://pinia.esm.dev/logo.svg" alt="Pinia logo">
  Pinia Storage
</h1>

<a href="https://npmjs.com/package/@mwjz/pinia-storage">
  <img src="https://badgen.net/npm/v/@mwjz/pinia-storage/latest" alt="npm package">
</a>

Persistence state in your pinia 🍍 store!

## Installation

```sh
npm install @mwjz/pinia-storage
```

## Usage

```storage
import { PiniaStorage } from '@mwjz/pinia-storage'

// Pass the plugin to your application's pinia plugin
pinia.use(PiniaStorage())
```

You can then use  `storage` option in your stores:

```js
defineStore('id', {
  state: () => ({ bar: '', baz: 0, foo: null }),
  storage: {
    local: ['bar'],
    session: {
      baz: {
        read: (baz) => Number(baz)
      },
      foo: {
        write: (foo: object) => JSON.stringify(foo),
        read: (foo) => {
          try {
            if (!foo) return null;
            return JSON.parse(foo);
          } catch (error) {
            return null
          }
        }
      },
    }
  }
})
```

## License

[MIT](http://opensource.org/licenses/MIT)