Every line of 'query-string npm' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
46 function stringifyQuery(query) { 47 var kvs = []; 48 49 for (var key in query) { 50 kvs.push(key + '=' + encodeURIComponent(query[key])); 51 } 52 53 return kvs.join('&'); 54 }
189 function stringifyQuery (query) { 190 return _.values(_.map(query, stringifyParam)).join('&'); 191 192 function stringifyParam (val, key) { 193 return encodeURIComponent(key) + '=' + encodeURIComponent(val); 194 } 195 }