vue-js-cookie

A Vue plugin for managing cookies.

Showing:

Popularity

Downloads/wk

198

GitHub Stars

4

Maintenance

Last Commit

4yrs ago

Contributors

4

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Vue Cookies

Reviews

Average Rating

3.0/52
Read All Reviews
vimal-verma

Top Feedback

1Easy to Use

Readme

Vue JS Cookie

A Vue plugin for managing cookies.

Installation

NPM:

npm install vue-js-cookie

Include in the body after loading Vue.js and it will automatically hook into Vue.

<script src="/node_modules/vue-js-cookie/vue-js-cookie.min.js'"></script>

Usage

You can access this plugin either with this.$cookie or Vue.cookie.

This package uses the very impressive JS-Cookie package.

// Create a cookie that will expire in 7 days
this.$cookie.set('name', 'value', 7)

// Get a cookie
this.$cookie.get('name') // -> value

// Remove a cookie
this.$cookie.remove('name')

License

Blue Bay Travel Vue JS Cookie is licensed under The MIT License (MIT).

Rate & Review

Great Documentation0
Easy to Use1
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
VIMAL KUMAR VERMAIIIT Ranchi20 Ratings66 Reviews
Full-Stack developer
November 24, 2020

This package is very useful for vue developer, managing cookie is very hard but vue-js-cookie make it simple,vue-js-cookie documentation is very helpful


0

Tutorials

No tutorials found
Add a tutorial