Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joduplessis/cookied

Easy cookie management.
https://github.com/joduplessis/cookied

cookie rollup typescript

Last synced: 14 days ago
JSON representation

Easy cookie management.

Awesome Lists containing this project

README

        

# Cookied
## Easy cookie management with JS

Module in progress, expect hickups.

### Installation

Install the package via GitHub with `npm install https://github.com/joduplessis/Cookied.git` or `yarn add https://github.com/joduplessis/Cookied.git`.

### Usage

This example assumes ES6 usage.
```
import { Cookied } from 'cookied';

// Instantiate the class
const cookied = new Cookied();

cookied.setCookie("COOKIED", "NICE");
cookied.getCookie("COOKIED");
cookied.deleteCookie("COOKIED");
```