EverCookie

Versatile storage.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
70Dec 15, 2018Oct 23, 2016Minified + gzip package size for EverCookie in KB

Readme

EverCookie

npm version Code Climate Test Coverage Issue Count Donate

Versatile storage.

Build

The repository contains pre-compiled files, but if you want to add your files and compile, then run the following commands in the repository folder.

  • npm install
  • npm run production

or

  • npm run development

The build required NodeJs version 6 or higher.

Usage

import EverCookie from "EverCookie.ts";

let LocalEverCookie = new EverCookie(uid);

LocalEverCookie.setItem(checkSupport, key, value);
LocalEverCookie.getItem(checkSupport, key);
LocalEverCookie.removeItem(checkSupport, key);
LocalEverCookie.getKeys(checkSupport);
LocalEverCookie.clear(checkSupport);
LocalEverCookie.destroy();
LocalEverCookie.stop();
LocalEverCookie.start();

or

let EverCookie = required("EverCookie.js");

let LocalEverCookie = new EverCookie(uid);

LocalEverCookie.setItem(checkSupport, key, value);
LocalEverCookie.getItem(checkSupport, key);
LocalEverCookie.removeItem(checkSupport, key);
LocalEverCookie.getKeys(checkSupport);
LocalEverCookie.clear(checkSupport);
LocalEverCookie.destroy();
LocalEverCookie.stop();
LocalEverCookie.start();

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.