Skip to content

A NPM Package to mangement cookies of the browser

Notifications You must be signed in to change notification settings

PagueVeloz/pv-cookies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI Coverage Status License: MIT npm version

@pagueveloz/cookies

Giving easy access to browser cookies. Visit on NPM

setCookie(name, string) - Allows you to pass a name and a string value to store a cookie on the user's browser. It maps the name to the string.

readCookie(name) - returns the value of your of your cookie.

deleteCookie(name) - removes the cookie from the browser history.

Installation

Package Manager Command
Yarn yarn add @pagueveloz/cookies
NPM npm install --save @pagueveloz/cookies

usage

  1. Import these methods in es6 like so: import { setCookie, readCookie, deleteCookie } from '@pagueveloz/cookies'