Skip to content

Awesome-Creators/vueposu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

132e8e2 · Feb 20, 2023

History

25 Commits
May 23, 2022
Feb 20, 2023
May 23, 2022
May 23, 2022
May 23, 2022
May 23, 2022
Feb 20, 2023
Jan 7, 2023
May 23, 2022
May 23, 2022
May 23, 2022
May 23, 2022

Repository files navigation


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.