sfcookies
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/sfcookies package

1.0.2 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i sfcookies

Weekly Downloads

775

Version

1.0.2

License

ISC

Last publish

Collaborators

  • 15dkatz