• File: formats.js
  • Full Path: /home6/laduliya/test.mydthpay.com/node_modules/npm/node_modules/qs/lib/formats.js
  • Date Modified: 10/26/1985 11:45 AM
  • File size: 387 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'use strict';

var replace = String.prototype.replace;
var percentTwenties = /%20/g;

module.exports = {
    'default': 'RFC3986',
    formatters: {
        RFC1738: function (value) {
            return replace.call(value, percentTwenties, '+');
        },
        RFC3986: function (value) {
            return value;
        }
    },
    RFC1738: 'RFC1738',
    RFC3986: 'RFC3986'
};