How to use the unescape function from querystring

Find comprehensive JavaScript querystring.unescape code examples handpicked from public code repositorys.

228
229
230
231
232
233
234
235
236
237
238
module.exports = buildRequest
module.exports.TimeoutError = TimeoutError


function unixRequest (opts) {
  delete opts.port
  opts.socketPath = querystring.unescape(opts.hostname)
  delete opts.hostname
  return this.base.request(opts)
}

fork icon65
star icon122
watch icon19

268
269
270
271
272
273
274
275
276
277
    'page[size]': pageSize,
    'page[number]': pageIndex
}
const options = {
    host: 'api.intra.42.fr',
    path: path + '?' + querystring.unescape(querystring.stringify(params)),
    method: 'GET',
    headers: {
        'Content-Type': 'application/json',
        'Authorization': `Bearer ${token}`
fork icon5
star icon17
watch icon1

110
111
112
113
114
115
116
117
118
119
120
]


async function makeRequest(token, path) {
    const options = {
        host: 'api.intra.42.fr',
        path: path, //+ '?' + querystring.unescape(querystring.stringify(params)),
        method: 'GET',
        headers: {
            'Content-Type': 'application/json',
            'Authorization': `Bearer ${token}`
fork icon5
star icon17
watch icon1

219
220
221
222
223
224
225
226
	}
	req.session.pr_captchaScore = CAPTCHA_INIT_SCORE;
	req.session.pr_CaptchaSeconds = process.hrtime()[0];
	const referrer = req.get('Referrer');
	const query = new URL(referrer).searchParams;
	const returnURL = query.get('returnto') ? querystring.unescape(query.get('returnto')) : home_path;
	res.redirect(303, returnURL);
};
fork icon0
star icon0
watch icon0

+ 2 other calls in file

89
90
91
92
93
94
95
96
97
// `/complex/foo.js` => `foo.js`

const pathname = urlObject.pathname.slice(publicPathObject.pathname.length);

if (pathname) {
  filename = path.join(outputPath, querystring.unescape(pathname));
}

let fsStats;
fork icon0
star icon0
watch icon0