Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via pnpm

@vueuse/core 10.4.1

Collection of essential Vue Composition Utilities
Package summary
Share
1
issue
1
high severity
meta
1
4
licenses
26
MIT
1
BSD-2-Clause
1
ISC
1
BSD-3-Clause
Package created
24 Dec 2019
Version published
28 Aug 2023
Maintainers
4
Total deps
29
Direct deps
4
License
MIT

Issues

1

1 high severity issue

high
via: @vueuse/shared@10.4.1 & others
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
26 Packages, Including:
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.24.5
@babel/parser@7.24.5
@babel/types@7.24.5
@jridgewell/sourcemap-codec@1.4.15
@types/web-bluetooth@0.0.17
@vue/compiler-core@3.4.27
@vue/compiler-dom@3.4.27
@vue/compiler-sfc@3.4.27
@vue/compiler-ssr@3.4.27
@vue/reactivity@3.4.27
@vue/runtime-core@3.4.27
@vue/runtime-dom@3.4.27
@vue/server-renderer@3.4.27
@vue/shared@3.4.27
@vueuse/core@10.4.1
@vueuse/metadata@10.4.1
@vueuse/shared@10.4.1
csstype@3.1.3
estree-walker@2.0.2
magic-string@0.30.10
nanoid@3.3.7
postcss@8.4.38
to-fast-properties@2.0.0
vue-demi@0.14.7
vue@3.4.27

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
entities@4.5.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
picocolors@1.0.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
source-map-js@1.2.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of @vueuse/core 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@types/web-bluetooth0.0.172.92 kBMIT
prod
@vueuse/metadata10.4.134.34 kBMIT
prod
@vueuse/shared10.4.166.14 kBMIT
prod
1
vue-demi0.14.77.58 kBMIT
prod
1

Visualizations

Frequently Asked Questions

What does @vueuse/core do?

@vueuse/core is a must-have npm package for developers in the Vue.js ecosystem, providing an extensive collection of essential Vue Composition functions. These utilities facilitate seamless migration between both Vue 3 and 2, making it an excellent choice for developers aiming to modernize their Vue applications or build new ones. In addition to being fully tree-shakeable and typed with TypeScript, @vueuse/core is also SSR-friendly, and can be used without a bundler, thanks to its CDN availability. Furthermore, it offers optional add-ons, including integrations with Router, Firebase, RxJS, and more.

How do you use @vueuse/core?

To use @vueuse/core in your Vue application, you first need to install the library using npm. Once installed, you may import and utilize its Composition utilities within your Vue components. Here is a simple example:

import { useLocalStorage, useMouse, usePreferredDark } from '@vueuse/core'

export default {
  setup() {
    // tracks mouse position
    const { x, y } = useMouse()

    // if user prefers dark theme
    const isDark = usePreferredDark()

    // persist state in localStorage
    const store = useLocalStorage(
      'my-storage',
      {
        name: 'Apple',
        color: 'red',
      },
    )

    return { x, y, isDark, store }
  },
}

In this example, three utilities from @vueuse/core are imported: useLocalStorage, useMouse, and usePreferredDark. useMouse is used to track the mouse position, usePreferredDark is used to store the user's theme preference, and useLocalStorage is used to store an object in the browser's local storage.

Where are the @vueuse/core docs?

The well-written and comprehensive documentation for @vueuse/core can be found at vueuse.org. It provides detailed explanations on how to use each of the utilities and interactive demos, allowing developers of all levels to understand and utilize the package with ease. You'll also find an updated list of functions and related documentation on this site. Whether you are starting a new Vue project or looking to improve your existing application, consider leveraging @vueuse/core to enhance your development process.