js-cookie

(β˜… 22,593)

A simple, lightweight JavaScript API for handling cookies, client-side.

  • .gitignore
  • .nano-staged.mjs
  • .prettierignore
  • .release-it.json
  • .simple-git-hooks.json
  • browserstack.yml
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • eslint.config.mjs
  • Gruntfile.js
  • index.js
  • LICENSE
  • package-lock.json
  • package.json
  • prettier.config.mjs
  • README.md
  • rollup.config.mjs
  • SECURITY.md
  • SERVER_SIDE.md

# Installation Guide

1. Get the code
git clone https://github.com/js-cookie/js-cookie

Downloads the entire project code from GitHub to your computer.

cd js-cookie

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
npm i js-cookie

Type this command into your terminal and run it.

npm i @types/js-cookie

Type this command into your terminal and run it.

βœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

// repository documentation