Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vueuse/nuxt

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vueuse/nuxt

VueUse Nuxt Module

  • 11.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
240K
increased by6.4%
Maintainers
1
Weekly downloads
 
Created

What is @vueuse/nuxt?

@vueuse/nuxt is a Nuxt.js module that integrates VueUse, a collection of essential Vue Composition Utilities for Vue 2 and 3. It provides a wide range of reactive utilities and composable functions to enhance your Vue.js development experience.

What are @vueuse/nuxt's main functionalities?

State Management

This feature allows you to easily manage state with localStorage. The `useLocalStorage` function synchronizes a reactive variable with localStorage, making it persistent across page reloads.

```javascript
<script setup>
import { useLocalStorage } from '@vueuse/core'

const name = useLocalStorage('name', 'John Doe')
</script>
<template>
  <input v-model="name" placeholder="Enter your name" />
  <p>Your name is: {{ name }}</p>
</template>
```

Sensors

This feature provides reactive utilities for various sensors. The `useMouse` function, for example, tracks the mouse position and makes it reactive, allowing you to easily use it in your templates.

```javascript
<script setup>
import { useMouse } from '@vueuse/core'

const { x, y } = useMouse()
</script>
<template>
  <p>Mouse position: ({{ x }}, {{ y }})</p>
</template>
```

Network

This feature provides utilities to reactively track network status. The `useOnline` function, for example, allows you to determine if the user is online or offline and react accordingly in your templates.

```javascript
<script setup>
import { useOnline } from '@vueuse/core'

const isOnline = useOnline()
</script>
<template>
  <p v-if="isOnline">You are online</p>
  <p v-else>You are offline</p>
</template>
```

Other packages similar to @vueuse/nuxt

Keywords

FAQs

Package last updated on 16 Sep 2024

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