Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alexistm/faster-cookie-parser

A cookie parse which is finally simple.
https://github.com/alexistm/faster-cookie-parser

Last synced: 1 day ago
JSON representation

A cookie parse which is finally simple.

Awesome Lists containing this project

README

        

# faster-cookie-parser
A cookie parser which is finally simple and short. This library is currently only 10 lines long.

## Install

```bash
npm install --save faster-cookie-parser
```

## Usage

```js
const cookieParser = require('faster-cookie-parser');
let cookie = cookieParser("token=123token; user=AlexisTM");
/*
{
token: "123token",
user: "AlexisTM"
}
*/
```

# Credits

- [@AlexisTM](http://github.com/AlexisTM)