@uni-use/monorepo
v1.5.1
Published
Collection of common composition apis for vue2 & vue3
Downloads
7
Maintainers
Readme
@uni-use/monorepo
Collection of common composition apis for vue2 & vue3
Function list
- A js utilities that contains all the methods for downloading files: use-downloads
- A combined api for editable html and textarea: use-textarea
- A composition api for SpeechSynthesis, supports vue2.0 and vue3.0: use-speak
- A composition api for SpeechRecognition, supports vue2.0 and vue3.0: use-recognition
- (Developing...) An easy to use axios based http client combinatorial api with support for return sequentially: @uni-use/request
- (Developing...) A composition api for css throttle, supports vue2.0 and vue3.0: use-css-throttle
- Mounted state in ref: @uni-use/mounted
- SSR compatibility isSupported: @uni-use/supported
- Promised one-time watch for changes: @uni-use/until
- Collection of shared Utilities: @uni-use/shared
Install
e.g: use use-downloads
# by pnpm
pnpm install use-downloads
# by npm
npm install -D use-downloads
# by yarn
yarn add use-downloads
Usage
General use
import useDownloads from 'use-downloads'
const { download } = useDownloads()
download('url', options)
- by require
const useDownloads = require('use-downloads')
const { download } = useDownloads()
download('url', options)
Use CDN resource
<!-- head -->
<script src="https://unpkg.com/[email protected]/dist/index.global.prod.js"></script>
Issues & Support
Please open an issue here.