Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/saqqdy/uni-use

Some useful composition api
https://github.com/saqqdy/uni-use

speechrecognition speechsynthesis uni-use use-downloads use-recognition use-speak use-textarea vue-hooks

Last synced: about 1 month ago
JSON representation

Some useful composition api

Awesome Lists containing this project

README

        

# @uni-use/monorepo

Collection of common composition apis for vue2 & vue3

[![NPM version][npm-image]][npm-url]
[![Codacy Badge][codacy-image]][codacy-url]
[![License][license-image]][license-url]

[![Sonar][sonar-image]][sonar-url]

## Function list

- A js utilities that contains all the methods for downloading files: [use-downloads](https://github.com/saqqdy/uni-use/tree/master/packages/downloads)
- A combined api for editable html and textarea: [use-textarea](https://github.com/saqqdy/uni-use/tree/master/packages/textarea)
- A composition api for SpeechSynthesis, supports vue2.0 and vue3.0: [use-speak](https://github.com/saqqdy/uni-use/tree/master/packages/speak)
- A composition api for SpeechRecognition, supports vue2.0 and vue3.0: [use-recognition](https://github.com/saqqdy/uni-use/tree/master/packages/recognition)
- (Developing...) An easy to use axios based http client combinatorial api with support for return sequentially: [@uni-use/request](https://github.com/saqqdy/uni-use/tree/master/packages/request)
- Mounted state in ref: [@uni-use/mounted](https://github.com/saqqdy/uni-use/tree/master/packages/utils/mounted)
- SSR compatibility isSupported: [@uni-use/supported](https://github.com/saqqdy/uni-use/tree/master/packages/utils/supported)
- Promised one-time watch for changes: [use-until](https://github.com/saqqdy/uni-use/tree/master/packages/utils/until)
- Collection of shared Utilities: [@uni-use/shared](https://github.com/saqqdy/uni-use/tree/master/packages/utils/shared)

## Install

e.g: use `use-downloads`

```shell
# by pnpm
pnpm install use-downloads

# by npm
npm install -D use-downloads

# by yarn
yarn add use-downloads
```

## Usage

### General use

```js
import useDownloads from 'use-downloads'
const { download } = useDownloads()

download('url', options)
```

2. by require

```js
const useDownloads = require('use-downloads')
const { download } = useDownloads()

download('url', options)
```

### Use CDN resource

```html

```

## Issues & Support

Please open an issue [here](https://github.com/saqqdy/uni-use/issues).

## License

[MIT](LICENSE)

[npm-image]: https://img.shields.io/npm/v/@uni-use/monorepo.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@uni-use/monorepo
[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696
[codacy-url]: https://www.codacy.com/gh/saqqdy/@uni-use/monorepo/dashboard?utm_source=github.com&utm_medium=referral&utm_content=saqqdy/@uni-use/monorepo&utm_campaign=Badge_Grade
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_uni-use
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_uni-use