Socket
Socket
Sign inDemoInstall

@vueuse/integrations

Package Overview
Dependencies
80
Maintainers
1
Versions
228
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @vueuse/integrations

Integration wrappers for utility libraries


Version published
Weekly downloads
391K
decreased by-27.45%
Maintainers
1
Created
Weekly downloads
 

Package description

What is @vueuse/integrations?

@vueuse/integrations is a collection of Vue Composition API utilities that provide seamless integration with various third-party libraries and APIs. It simplifies the process of using these libraries within Vue.js applications by offering ready-to-use hooks and utilities.

What are @vueuse/integrations's main functionalities?

Integration with Firebase

This feature allows you to easily integrate Firebase services like Firestore and Authentication into your Vue.js application. The code sample demonstrates how to use Firestore to fetch a collection of 'todos' and Firebase Authentication to get the current user.

import { useFirestore, useAuth } from '@vueuse/integrations/firebase';

const { user } = useAuth();
const { data: todos } = useFirestore(
  firebase.firestore().collection('todos')
);

Integration with Axios

This feature provides a convenient way to make HTTP requests using Axios within your Vue.js components. The code sample shows how to fetch data from an API endpoint and handle loading and error states.

import { useAxios } from '@vueuse/integrations/axios';

const { data, error, loading } = useAxios('https://api.example.com/data');

Integration with RxJS

This feature allows you to use RxJS observables within your Vue.js components. The code sample demonstrates how to create an observable that emits values at a regular interval and use it within a Vue component.

import { useObservable } from '@vueuse/integrations/rxjs';
import { interval } from 'rxjs';

const { data } = useObservable(interval(1000));

Other packages similar to @vueuse/integrations

Readme

Source

@vueuse/integrations

NPM version

This is an add-on of VueUse, providing integration wrappers for utility libraries.

Install

npm i @vueuse/integrations

Functions

Tree-shaking

For better tree-shaking result, import functions from submodules, for example:

import { useAxios } from '@vueuse/integrations/useAxios'

// Don't
import { useAxios } from '@vueuse/integrations'

License

MIT License © 2019-PRESENT Anthony Fu

Keywords

FAQs

Last updated on 11 Jun 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc