No description, website, or topics provided.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
test
.travis.yml
LICENCE
Makefile
README.md
index.js
package.json

README.md

Routil-cookie

build status

Cookie manipulation on req and res

Example

var routilCookie = require("routil-cookie"),
    getCookie = routilCookie.getCookie,
    setCookie = routilCookie.setCookie,
    http = require("http")

http.createServer(function (req, res) {
    var value = getCookie(req, name)

    setCookie(res, name, value, options)
    setCookie(res, {
        name: value
    }, options)
})

Installation

npm install routil-cookie

Tests

make test

Contributors

  • Raynos

MIT Licenced