vue-teddy-store

0.5.3 • Public • Published
Vue Teddy Store

npm Codecov npm npm

What is Vue Teddy Store?

Vue Teddy Store is the easiest - next-generation - store for Vue application. Check out the documentation to find more about its minimal & delightful API.



Example

<!-- start of .vue file -->
<script>
  import { sync } from 'vue-teddy-store'

  export default {
    computed: {
      products: sync('products', 'items'),
    },
  }
</script>
<!-- End of .vue file -->

<script>
  /* part of your main.js file */
  import Vue from 'vue'
  import { setStore, install } from 'vue-teddy-store'

  setStore('products', {
    state: {
      items: [
        {
          name: 'Berries',
        },
      ],
    },
  })

  Vue.use(install)
  /* end part of your main.js file */
</script>

Contributing

Vue Teddy Store is and always will be free and open source.

Core Codebase Contributors

This project, so far, exists only because of the will of one person. If you use it and thinks it should become better, cover more cases or be more stable, consider pushing pull requests as well as reaching out through issues for ideas, bugs and questions.

License

MIT

Copyright (c) 2020-present, Gabin Desserprit

Readme

Keywords

none

Package Sidebar

Install

npm i vue-teddy-store

Weekly Downloads

59

Version

0.5.3

License

MIT

Unpacked Size

180 kB

Total Files

42

Last publish

Collaborators

  • gahabeen