wookie

0.0.1 • Public • Published

wookie

Basic HTTP cookie handling for node or browsers.

Usage

var cookie = require('wookie');
 
cookie.set('name', 'foo').get('name'); // 'foo'

API

wookie.set(name, value, expires, path, domain)

Sets a cookie to document.cookie.

wookie.get(name)

Returns the name of a set cookie.

wookie.setObject(object, expires, path, domain)

Set multiple cookies using an object, property name corresponds to the cookie name.

wookie.getObject()

Returns all cookies for a domain as an object.

wookie.unset(name)

Remove a cookie of a given name.

wookie.clear()

Removes all cookies for a domain.

Tests

npm -g browserify
npm -g testling
npm test

Licence

BSD

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.12latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.12
0.0.00

Package Sidebar

Install

npm i wookie

Weekly Downloads

2

Version

0.0.1

License

BSD

Last publish

Collaborators

  • tristen