Giter Club home page Giter Club logo

vue-hooks-plus's Introduction

npm package build status language gzip librariesio LICENSE

VueHooks Plus

English | 简体中文

High performance & Simplicity Vue3 Hooks library

✨ Features

  • 🏄🏼‍♂️ Easy to learn and use
  • 🔋 Supports SSR
  • 🛸 Contains a comprehensive collection of basic Hooks
  • 🏟️ A wide range of application scenarios
  • 🦾 Preferred useRequest, Powerful request middle tier
  • 🎪 Interactive demo, immersive
  • 🎯 Written in TypeScript with predictable static types
  • 🪄 Support the on-demand load, and reduce the packing volume
  • 🤺 Playground, there's ample scope for one's abilities
  • 🔐 Perfect test, safe and reliable

📦 Install

npm i vue-hooks-plus

CDN

<script src="https://cdn.jsdelivr.net/npm/vue-hooks-plus/dist/js/index.iife.js"></script>

It will be exposed to global as VueHooks_Plus

🤹‍♀️ Usage

import { useRequest } from 'vue-hooks-plus'

Introduced on demand

import useRequest from 'vue-hooks-plus/es/useRequest'

Auto Import

Vite
import AutoImport from 'unplugin-auto-import/vite'
import { VueHooksPlusResolver } from '@vue-hooks-plus/resolvers'

export const AutoImportDeps = () =>
  AutoImport({
    imports: ['vue', 'vue-router'],
    include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
    dts: 'src/auto-imports.d.ts',
    resolvers: [VueHooksPlusResolver()],
  })


Webpack
const { VueHooksPlusResolver } = require('@vue-hooks-plus/resolvers')
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-auto-import/webpack')({
      imports: ['vue', 'vue-router'],
      include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
      dts: 'src/auto-imports.d.ts',
      resolvers: [VueHooksPlusResolver()],
    }),
  ],
}


For other supported tools, please see unplugin-auto-import

Globalization Documentations

Example

🪴 Project Activity

Alt

Contributing

Welcome to join us! You can check out the Contributing Guide to learn how to get started.

Contributors

Thanks for all their contributions 🐝 !

🌸 Thanks

This project is heavily inspired by the following awesome projects.

📄 License

MIT License © 2022-PRESENT YongGit

vue-hooks-plus's People

Contributors

nelsonyong avatar inhiblab avatar hongaah avatar noobbbbbbb avatar colgin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.