Git Product home page Git Product logo

daynlight / js-cookies Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 0.0 2.71 MB

๐ŸชJS Cookies is a simple JavaScript library ๐Ÿ“• for managing browser cookies. You can easily set ๐ŸŽซ cookies, retrieve ๐ŸŽ cookie values, and remove ๐Ÿงจ cookies. The library is lightweight and ideal for handle cookies in web app by javascript.

License: MIT License

cookies javascript javascript-library js library

js-cookies's Introduction

๐ŸชJS Cookies Lib๐Ÿช

๐ŸŒAbout๐ŸŒ

It is lightweight and easy Lib for manage Cookies in Java Script.

๐Ÿ“ƒUsage๐Ÿ“ƒ

1. Download Cookies.js from Released Branch and add to your program.
2. Include Functions from Cookies.js to your javascript file. (your file need be type="module")
import { Cookies, CreateCookie, ChangeCookie, LoadCookies, ReLoadCookies, DeleteCookie } from "./Cookies.js";
3. To Load Cookie use LoadCookies() or ReLoadCookies() functions.
4. For Read Data from cookie just Load Cookies and use Cookies[Name].
5. For Adding new Cookie or change cookie use CreateCookie(Name, Data, LifeTimeInMiliSeconds) or ChangeCookie(Name, Data, LifeTimeInMiliSeconds);
6. To delete Cookie use DeleteCookie(Name);

๐Ÿ”ฅFeatures๐Ÿ”ฅ

  • Load Cookies
  • Reload Cookies
  • Get Data from Cookies
  • Create new Cookie
  • Change Cookie
  • Delete Cookies

js-cookies's People

Contributors

daynlight avatar

Stargazers

Fuki avatar ko@l@tr33 avatar Kiril Misnikov avatar Nguyen Hong The avatar Chris K. Thomas avatar Miftahul Ulyana Hutabarat avatar Hamada avatar  avatar Paul Koop avatar  avatar

Watchers

 avatar Kiril Misnikov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.