Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/InhiblabCore/vue-hooks-plus

High performance & Simplicity ๐Ÿงฒ Vue 3 Hooks library
https://github.com/InhiblabCore/vue-hooks-plus

hooks-library typescript vue-hooks-library vue-hooks-plus vue3

Last synced: about 2 months ago
JSON representation

High performance & Simplicity ๐Ÿงฒ Vue 3 Hooks library

Awesome Lists containing this project

README

        






npm package
build status
language

librariesio
LICENSE

# VueHooks Plus

English | [็ฎ€ไฝ“ไธญๆ–‡](https://github.com/InhiblabCore/vue-hooks-plus/tree/master/README.zh-CN.md)

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

```bash
npm i vue-hooks-plus
```

### CDN

```html

```

It will be exposed to global as `VueHooks_Plus`

## ๐Ÿคนโ€โ™€๏ธ Usage

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

Introduced on demand

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

Auto Import

Vite

```ts
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

```ts
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](https://github.com/antfu/unplugin-auto-import)

### Globalization Documentations

- [English Documentations](https://inhiblabcore.github.io/docs/hooks/en)
- [ไธญๆ–‡ๆ–‡ๆกฃ](https://inhiblabcore.github.io/docs/hooks)

### Example

- [Vue Admin Novel](https://github.com/NelsonYong/vue-admin-novel)
- [Nuxt 3](https://github.com/InhiblabCore/vue-hooks-plus-example/tree/main/nuxt3)
- [Vite + Vue 3](https://github.com/InhiblabCore/vue-hooks-plus-example/tree/main/vite-vue3)
- [Webpack + Vue 3](https://github.com/InhiblabCore/vue-hooks-plus-example/tree/main/webpack-vue3)

## ๐Ÿคฉ Awesome

### Template

- [Ray Template](https://github.com/XiaoDaiGua-Ray/ray-template)

## ๐Ÿชด Project Activity

![Alt](https://repobeats.axiom.co/api/embed/35dbca2274542c0144993be92cc51762227543d9.svg 'Repobeats analytics image')

### Contributing

Welcome to join us! You can check out the [Contributing Guide](./CONTRIBUTING.md) to learn how to get started.

### Contributors

Thanks for all their contributions ๐Ÿ !



## ๐ŸŒธ Thanks

This project is heavily inspired by the following awesome projects.

- [ahooks](https://ahooks.js.org/)
- [@koale/useworker](https://github.com/alewin/useWorker)

## ๐Ÿ“„ License

[MIT License](https://github.com/InhiblabCore/vue-hooks-plus/blob/master/LICENSE) ยฉ 2022-PRESENT [YongGit](https://github.com/NelsonYong)