Socket
Socket
Sign inDemoInstall

vue-request

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-request

A request library for Vue 3


Version published
Weekly downloads
2.6K
increased by5.26%
Maintainers
2
Weekly downloads
 
Created
Source

English | 简体中文

VueRequest logo

VueRequest

⚡️ A request library for Vue 3.

Coverage Status Size Version Languages License

Status: Beta

Features

  • 🚀 All data is reactive
  • 🔄 Interval polling
  • 🤖 Automatic error retry
  • 🗄 Built-in cache
  • 📠 Written in TypeScript
  • 🍃 Lightweight
  • 📦 Out of the box
  • 🔥 Interactive docs

Documentation

Install

npm install vue-request@beta

# or with yarn
yarn add vue-request@beta

CDN

<script src="https://unpkg.com/vue-request@beta"></script>

It will be exposed to global as window.VueRequest.useRequest

Usage

import { useRequest } from 'vue-request';

export default {
  setup() {
    const { data } = useRequest('api/user');
    return () => <div>{data.value}</div>;
  },
};

TODO List

If you have any cool features, please submit an issue for discussion

  • Documentation
  • Pagination
  • Load More
  • Support Vue 2

Thanks

Thank them for inspiring us.

License

MIT License © 2020-present AttoJS

Keywords

FAQs

Package last updated on 06 Mar 2021

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