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

vue3-cookies

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-cookies - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "vue3-cookies",
"version": "1.0.2",
"version": "1.0.3",
"description": "A simple Vue.js 3 plugin for handling browser cookies",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -16,6 +16,9 @@ # vue3-cookies

Usage - via composition API (recommended):
## Usage - via composition API (recommended):
```
// MyComponent.vue
<script>
import { useCookies } from "vue3-cookies";
export default defineComponent({

@@ -26,3 +29,5 @@ setup() {

},
// <data, methods...>
mounted() {

@@ -34,4 +39,5 @@ let my_cookie_value = this.$cookies.get("myCoookie");

}
</script>
```
Optional global cookies config:
### Optional global cookies config:
```

@@ -55,3 +61,3 @@ // Optional - global config at main.ts / main.js

Usage - as vue plugin
## Usage - as vue plugin (legacy)

@@ -58,0 +64,0 @@ ```

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