Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.