@apology/cookies
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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 Manager Command
Yarn yarn add @apology/cookies
NPM npm install --save @apology/cookies

usage

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

Install

npm i @apology/cookies

DownloadsWeekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • jandersonconstantino