0.0.1 • Published 4 years ago

@apology/cookies v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

CircleCI Coverage Status License: MIT npm version

@apology/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 ManagerCommand
Yarnyarn add @apology/cookies
NPMnpm install --save @apology/cookies

usage

2) Import these methods in es6 like so: import { setCookie, readCookie, deleteCookie } from '@apology/cookies'