Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-hooks-plus

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-hooks-plus

Vue hooks library

  • 1.9.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
515
decreased by-37.27%
Maintainers
1
Weekly downloads
 
Created
Source

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

🤩 Awesome

Template

🪴 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

Keywords

FAQs

Package last updated on 27 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc