Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fatelei/js-tornado-cookie
Used for parse python tornado generated cookie.
https://github.com/fatelei/js-tornado-cookie
Last synced: about 1 month ago
JSON representation
Used for parse python tornado generated cookie.
- Host: GitHub
- URL: https://github.com/fatelei/js-tornado-cookie
- Owner: fatelei
- Created: 2015-06-26T03:31:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-28T14:08:04.000Z (over 9 years ago)
- Last Synced: 2024-11-06T08:44:36.550Z (about 2 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# js-tornado-cookie
Used for parse python tornado generated cookie.## Install
```
npm install js-tornado-cookie
```## API
+ new TornadoCookie(cookie, secret, {days: 31});
+ cookie: Cookie string
+ secret: Tornado cookie secret
+ options:
+ days: Cookie expired days, default is 31.## Usage
```
var TornadoCookie = require('js-tornado-cookie');var tc = new TornadoCookie('cookie', 'cookie secret', {days: 31});
console.log(tc.getSecureCookie('name'));
```