/* global exports */
"use strict";

// module Data.DOM.Simple.Encode

exports.paramatize = function (obj) {
  return Object.keys(obj).map(function (key) {
    return key + "=" + encodeURIComponent(obj[key]);
  }).join("&");
};

exports.toJsonString = function (obj) {
  return function () {
    return JSON.stringify(obj);
  };
};

@@ -63,16 +63,205 @@
 Encode%0A%0A
+exports.encodeURIComponent = window.encodeURIComponent;%0Aexports.decodeURIComponent = window.decodeURIComponent;%0Aexports.encodeURI = window.encodeURI;%0Aexports.decodeURI = window.decodeURI;%0A%0A
 exports.

fix up missing FFI target for encodeURI* methods