Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

15Dkatz/sfcookies

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sfcookies

Built to give ReactJS, AngularJS, or any nativeJS Web Application access to browser cookies. Visit on NPM

bake_cookie(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.

delete_cookie(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'

About

Giving react projects access to browser cookies.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.