var cookie = require('cookie');

exports = module.exports = {
  set: function (name, value, options) {
    return document.cookie = cookie.serialize(name, value, options);
  },

  get: function (name) {
    return cookie.parse(document.cookie)[name];
  },

  remove: function (name, options) {
    var opts = options || {};
    opts.expires = new Date(0);

    return !!(document.cookie = cookie.serialize(name, '', opts));
  },

  /**
   * no-op for client
   *
   * @todo
   * throw warning instead of silently doing nothing
   */
  init: function() { }
};
@@ -72,20 +72,19 @@
 nction (
-name
+key
 , value,
@@ -141,20 +141,19 @@
 rialize(
-name
+key
 , value,
@@ -186,20 +186,19 @@
 nction (
-name
+key
 ) %7B%0A    
@@ -234,20 +234,19 @@
 cookie)%5B
-name
+key
 %5D;%0A  %7D,%0A
@@ -266,20 +266,19 @@
 nction (
-name
+key
 , option
@@ -398,12 +398,11 @@
 ize(
-name
+key
 , ''

Rename variable to `key`.