BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / qs / lib / formats.js

formats.js

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
formats.js 387 B Download Raw
1'use strict';
2
3var replace = String.prototype.replace;
4var percentTwenties = /%20/g;
5
6module.exports = {
7 'default': 'RFC3986',
8 formatters: {
9 RFC1738: function (value) {
10 return replace.call(value, percentTwenties, '+');
11 },
12 RFC3986: function (value) {
13 return value;
14 }
15 },
16 RFC1738: 'RFC1738',
17 RFC3986: 'RFC3986'
18};