vueposu

A hooks library based on Vue Composition-API
1,363 15
Install
npm install vueposu
Latest Version:0.4.5
Vue:2 · 3
License:MIT
Last Updated:Feb 20, 2023
Links: GitHub  ·  npm
Maintainer: glitchboyl

logo

VUEPOSU

🧭  Vue's Eternal Pose (永久指针, 永久指針エターナルポース, Etānaru Pōsu)
(A hooks library based on Vue Composition-API)

workflow codecov


📦 INSTALLATION

Vueposu supports both Vue 3 and 2, but if you are using Vue 2 must ensure installed @vue/composition-api.

Vue 3

# install with npm
npm i vueposu

# install with yarn
yarn add vueposu

Vue 2

# install with npm
npm i vueposu @vue/composition-api

# install with yarn
yarn add vueposu @vue/composition-api

🍳 USAGE

import { useCounter } from "vueposu";

const Component = defineComponent({
  setup() {
    // create a counter
    const { count, inc, dec, set, reset } = useCounter(0);

    return {
      count,
      inc,
      dec,
      set,
      reset,
    };
  },
});

🚀 API

Currently supported functions:


Thanks

In no particular order, vueposu is inspired by these great awesome works:


License

The MIT License.

Related Packages

@cfcs/vue3

Write once, create framework components that supports React, Vue, Svelte, and mo...

228,245 119
@cfcs/vue2

Write once, create framework components that supports React, Vue, Svelte, and mo...

33,545 119
vue-use-paginator

Vue use-hook for renderless pagination logic

16,884 18

Version History

Version Released Vue License
0.4.5 ^2.6.14 || >=3.0.0 MIT
0.4.4 ^2.6.14 || >=3.0.0 MIT
0.3.7 ^2.0.0 || >=3.0.0-rc.0 MIT
0.3.6 ^2.0.0 || >=3.0.0-rc.0 MIT
0.3.5 ^2.0.0 || >=3.0.0-rc.0 MIT
Pre-releases (12)
Version Released Vue License
0.4.4-1 ^2.6.14 || >=3.0.0 MIT
0.4.3-1 ^2.6.14 || >=3.0.0 MIT
0.4.2-3 ^2.6.14 || >=3.0.0 MIT
0.4.2-2 ^2.6.14 || >=3.0.0 MIT
0.4.2-1 ^2.6.14 || >=3.0.0 MIT