saqqdy / uni-use

Some useful composition api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@uni-use/monorepo

Collection of common composition apis for vue2 & vue3

NPM version Codacy Badge License

Sonar

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
  • Mounted state in ref: @uni-use/mounted
  • SSR compatibility isSupported: @uni-use/supported
  • Promised one-time watch for changes: 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)
  1. by require
const useDownloads = require('use-downloads')
const { download } = useDownloads()

download('url', options)

Use CDN resource

<!-- head -->
<script src="https://unpkg.com/use-downloads@1.3.0/dist/index.global.prod.js"></script>

Issues & Support

Please open an issue here.

License

MIT

About

Some useful composition api

License:MIT License


Languages

Language:TypeScript 98.7%Language:JavaScript 1.2%Language:Shell 0.1%