README.md
# EverCookie
[![npm version](https://badge.fury.io/js/EverCookie.svg)](https://github.com/CrazySquirrel/EverCookie)
[![Code Climate](https://codeclimate.com/github/CrazySquirrel/EverCookie/badges/gpa.svg)](https://codeclimate.com/github/CrazySquirrel/EverCookie)
[![Test Coverage](https://codeclimate.com/github/CrazySquirrel/EverCookie/badges/coverage.svg)](https://codeclimate.com/github/CrazySquirrel/EverCookie/coverage)
[![Issue Count](https://codeclimate.com/github/CrazySquirrel/EverCookie/badges/issue_count.svg)](https://codeclimate.com/github/CrazySquirrel/EverCookie)
[![Donate](https://img.shields.io/badge/donate-%E2%99%A5-red.svg)](http://crazysquirrel.ru/support/)
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
```TypeScript
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
```JavaScript
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();
```