Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zkochan/easy-cookie

A small library for setting/getting/removing cookies.
https://github.com/zkochan/easy-cookie

Last synced: 10 days ago
JSON representation

A small library for setting/getting/removing cookies.

Awesome Lists containing this project

README

        

# easy-cookie

A small library for setting/getting/removing cookies.

[![Dependency Status](https://david-dm.org/zkochan/easy-cookie/status.svg?style=flat)](https://david-dm.org/zkochan/easy-cookie)
[![Build Status](https://travis-ci.org/zkochan/easy-cookie.svg?branch=master)](https://travis-ci.org/zkochan/easy-cookie)
[![npm version](https://badge.fury.io/js/easy-cookie.svg)](http://badge.fury.io/js/easy-cookie)

## Installation

```
npm install --save easy-cookie
```

## Usage

```js
var cookie = require('easy-cookie');

cookie.set('foo', 'bar');
console.log(cooke.get('foo'));

cookie.remove('foo');
console.log(cooke.get('foo'));
```

## License

MIT