Skip to content

Some simple methods for working with cookies in browsers

License

Notifications You must be signed in to change notification settings

Babak-Gholamzadeh/cookies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Cookies

Some methods that make it easy to work with cookies

Usage

You can access the methods via a global variable named cookies from everywhere.

// Returns an object of all the cookies
cookies.getAll();

// Set a new cookie i.e. key=value
cookies.set('key', 'value');

// Returns the value of the cookie with that key name
cookies.get('key');

// Removes the value of the cookie with that key name
cookies.remove('key');

About

Some simple methods for working with cookies in browsers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published