sfcookies

Giving react projects access to browser cookies. More description on usage on github.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
sfcookies
1.0.27 years ago7 years agoMinified + gzip package size for sfcookies in KB

Readme

sfcookies
Built to give ReactJS, AngularJS, or any nativeJS Web Application access to browser cookies. Visit on NPM
bakecookie(name, string) - Bake Cookie 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.
read
cookie(name) - returns the value of your of your baked cookie.
deletecookie(name) - removes the cookie from the browser history.
usage
1) Run npm install --save sfcookies
2) Import these methods in es6 like so: import { bake_cookie, read_cookie, delete_cookie } from 'sfcookies'